Skip to content

Commit 1c5fd27

Browse files
authored
Merge pull request #934 from davidhassell/pp-filesystem-2
Add `filesystem` parameter to `cf.read` as pass-through to `cfdm.read` (Part 2)
2 parents cd9bfac + 28c8b06 commit 1c5fd27

File tree

4 files changed

+210
-36
lines changed

4 files changed

+210
-36
lines changed

cf/data/array/umarray.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def __init__(
2626
mask=True,
2727
unpack=True,
2828
attributes=None,
29+
storage_protocol=None,
2930
storage_options=None,
3031
source=None,
3132
copy=True,
@@ -71,6 +72,14 @@ def __init__(
7172
7273
.. versionadded:: 3.16.3
7374
75+
{{init storage_protocol: `None` or `str`, optional}}
76+
77+
.. versionadded:: NEXTVERSION
78+
79+
{{init storage_options: `dict` or `None`, optional}}
80+
81+
.. versionadded:: NEXTVERSION
82+
7483
{{init source: optional}}
7584
7685
{{init copy: `bool`, optional}}
@@ -108,6 +117,7 @@ def __init__(
108117
mask=mask,
109118
unpack=unpack,
110119
attributes=attributes,
120+
storage_protocol=storage_protocol,
111121
storage_options=storage_options,
112122
source=source,
113123
copy=copy,

cf/read_write/read.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ def _read(self, dataset):
709709
"dataset_type",
710710
"unpack",
711711
"verbose",
712+
"filesystem",
713+
"storage_options",
712714
)
713715
}
714716
um_kwargs["set_standard_name"] = False

0 commit comments

Comments
 (0)