Skip to content
Snippets Groups Projects
Commit 8eeb2bf8 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

fix(dataset): pass kwargs as-is for ome dataset

parent eddbddcb
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ def dispatch_dataset(expt_id: int or str, **kwargs): ...@@ -33,7 +33,7 @@ def dispatch_dataset(expt_id: int or str, **kwargs):
Callable Dataset instance, either network-dependent or local. Callable Dataset instance, either network-dependent or local.
""" """
if isinstance(expt_id, int): # Is an experiment online if isinstance(expt_id, int): # Is an experiment online
return Dataset(x, **kwargs["general"].get("server_info")) return Dataset(expt_id, **kwargs)
elif isinstance(expt_id, str): # Files or Dir elif isinstance(expt_id, str): # Files or Dir
expt_path = Path(expt_id) expt_path = Path(expt_id)
if expt_path.is_dir(): if expt_path.is_dir():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment