File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,7 @@ def hdf5_lookup(
385
385
specs : Optional [List [Spec ]] = None ,
386
386
access_policy : Optional [AccessPolicy ] = None ,
387
387
dataset : Optional [Union [List [Path ], List [str ]]] = None ,
388
+ path : Optional [Union [List [Path ], List [str ]]] = None ,
388
389
) -> Union [HDF5Adapter , ArrayAdapter ]:
389
390
"""
390
391
@@ -398,12 +399,17 @@ def hdf5_lookup(
398
399
specs :
399
400
access_policy :
400
401
dataset :
402
+ path :
401
403
402
404
Returns
403
405
-------
404
406
405
407
"""
406
- dataset = dataset or []
408
+
409
+ if dataset is not None and path is not None :
410
+ raise ValueError ("dataset and path kwargs should not both be set!" )
411
+
412
+ dataset = dataset or path or []
407
413
adapter = HDF5Adapter .from_uri (
408
414
data_uri ,
409
415
structure = structure ,
You can’t perform that action at this time.
0 commit comments