Skip to content
This repository was archived by the owner on Mar 15, 2019. It is now read-only.

Commit d38875e

Browse files
committed
make varname optional
1 parent 2641721 commit d38875e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

intake_cmip/cmip5.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232
frequency,
3333
realm,
3434
ensemble,
35-
varname,
35+
varname=None,
3636
metadata=None,
3737
):
3838
"""
@@ -77,7 +77,8 @@ def __init__(
7777
(r<N>i<M>p<L>): This triad of integers (N, M, L), formatted as (e.g., “r3i1p21”)
7878
distinguishes among closely related simulations by a single model.
7979
All three are required even if only a single simulation is performed.
80-
varname : str
80+
varname : str, optional
81+
Variable name according to CMIP Data Reference Syntax (DRS)
8182
8283
"""
8384

tests/test_cmip5.py

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def test_source():
7676
frequency="mon",
7777
realm="atmos",
7878
ensemble="r2i1p1",
79-
varname="Tair",
8079
)
8180
assert isinstance(source, CMIP5DataSource)
8281

0 commit comments

Comments
 (0)