Skip to content

Commit

Permalink
add dependencies for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Mar 20, 2024
1 parent c5ce88f commit 24c1ff9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lindi/LindiH5pyFile/LindiH5pyFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ def from_reference_file_system(rfs: Union[dict, str]):
data = json.load(f)
assert isinstance(data, dict) # prevent infinite recursion
return LindiH5pyFile.from_reference_file_system(data)
else:
elif isinstance(rfs, dict):
fs = ReferenceFileSystem(rfs).get_mapper(root="")
return LindiH5pyFile.from_zarr_store(fs)
else:
raise Exception(f"Unhandled type for rfs: {type(rfs)}")

@staticmethod
def from_zarr_store(zarr_store: Union[ZarrStore, FSMap]):
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ zarr = "^2.16.1"
h5py = "^3.10.0"
remfile = "^0.1.9"
fsspec = "^2023.12.2"
aiohttp = "^3.9.3"
requests = "^2.31.0"

[tool.poetry.dev-dependencies]
pytest = "^7.4.4"
Expand Down

0 comments on commit 24c1ff9

Please sign in to comment.