Skip to content

Commit 48d0b14

Browse files
fix(backends): fix bug that would throw error when using open_compare with multiple backends and with backend-specific keyword arguments
1 parent 25b11d8 commit 48d0b14

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/ozzy/backends/lcode_backend.py

+1
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,7 @@ def read(
829829
axes_lims: dict[str, tuple[float, float]] | None = None,
830830
axisym: bool = True,
831831
abs_q: float = 1.0,
832+
**kwargs,
832833
) -> xr.Dataset:
833834
r"""
834835
Read one or more LCODE data files and create a Dataset.

src/ozzy/backends/osiris_backend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def config_osiris(ds):
241241

242242

243243
@stopwatch
244-
def read(files):
244+
def read(files, **kwargs):
245245
"""Read OSIRIS HDF5 data files and return a Dataset.
246246
247247
Parameters

src/ozzy/backends/ozzy_backend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def config_ozzy(ds):
3131

3232

3333
@stopwatch
34-
def read(files):
34+
def read(files, **kwargs):
3535
"""Read and process data files into a Dataset.
3636
3737
Parameters

0 commit comments

Comments
 (0)