Skip to content

Commit

Permalink
fix(backends): fix bug that would throw error when using `open_compar…
Browse files Browse the repository at this point in the history
…e` with multiple backends and with backend-specific keyword arguments
  • Loading branch information
mtrocadomoreira committed Nov 26, 2024
1 parent 25b11d8 commit 48d0b14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/ozzy/backends/lcode_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@ def read(
axes_lims: dict[str, tuple[float, float]] | None = None,
axisym: bool = True,
abs_q: float = 1.0,
**kwargs,
) -> xr.Dataset:
r"""
Read one or more LCODE data files and create a Dataset.
Expand Down
2 changes: 1 addition & 1 deletion src/ozzy/backends/osiris_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def config_osiris(ds):


@stopwatch
def read(files):
def read(files, **kwargs):
"""Read OSIRIS HDF5 data files and return a Dataset.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion src/ozzy/backends/ozzy_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def config_ozzy(ds):


@stopwatch
def read(files):
def read(files, **kwargs):
"""Read and process data files into a Dataset.
Parameters
Expand Down

0 comments on commit 48d0b14

Please sign in to comment.