Skip to content

Commit

Permalink
Allow for using legacy path parameter side by side with dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
jwlodek committed Aug 9, 2024
1 parent 9d3cbb4 commit 1164d6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tiled/adapters/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ def hdf5_lookup(
specs: Optional[List[Spec]] = None,
access_policy: Optional[AccessPolicy] = None,
dataset: Optional[Union[List[Path], List[str]]] = None,
path: Optional[Union[List[Path], List[str]]] = None,
) -> Union[HDF5Adapter, ArrayAdapter]:
"""
Expand All @@ -398,12 +399,17 @@ def hdf5_lookup(
specs :
access_policy :
dataset :
path :
Returns
-------
"""
dataset = dataset or []

if dataset is not None and path is not None:
raise ValueError("dataset and path kwargs should not both be set!")

dataset = dataset or path or []
adapter = HDF5Adapter.from_uri(
data_uri,
structure=structure,
Expand Down

0 comments on commit 1164d6e

Please sign in to comment.