Skip to content
Snippets Groups Projects
Commit e864e830 authored by Felix Kleinert's avatar Felix Kleinert
Browse files

Merge branch...

Merge branch 'felix_issue287_tech-wrf-datahandler-should-inherit-from-singlestationdatahandler' of ssh://gitlab.version.fz-juelich.de:10022/esde/machine-learning/mlair into felix_issue287_tech-wrf-datahandler-should-inherit-from-singlestationdatahandler
parents 76778529 27c29842
No related branches found
No related tags found
1 merge request!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
......@@ -64,6 +64,9 @@ class DefaultDataHandler(AbstractDataHandler):
sp_keys = {k: copy.deepcopy(kwargs[k]) for k in cls._requirements if k in kwargs}
sp = cls.data_handler(station, **sp_keys)
dp_args = {k: copy.deepcopy(kwargs[k]) for k in cls.own_args("id_class") if k in kwargs}
try:
return dask.compute(cls(sp, **dp_args))[0]
except Exception:
return cls(sp, **dp_args)
def _create_collection(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment