Skip to content
Snippets Groups Projects
Commit d9e21c1c authored by lukas leufen's avatar lukas leufen
Browse files

minor fix

parent 5cab39b2
Branches
Tags
2 merge requests!24include recent development,!19include tests for join downloads
Pipeline #27044 passed
...@@ -116,7 +116,7 @@ class DataPrep(object): ...@@ -116,7 +116,7 @@ class DataPrep(object):
:return: :return:
""" """
df_all = {} df_all = {}
df, meta = join.download_join(station_name=self.station, statvar=self.statistics_per_var, df, meta = join.download_join(station_name=self.station, stat_var=self.statistics_per_var,
station_type=self.station_type, network_name=self.network) station_type=self.station_type, network_name=self.network)
df_all[self.station[0]] = df df_all[self.station[0]] = df
# convert df_all to xarray # convert df_all to xarray
......
...@@ -42,11 +42,11 @@ class TestPreProcessing: ...@@ -42,11 +42,11 @@ class TestPreProcessing:
ExperimentSetup(parser_args={}, stations=['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087'], ExperimentSetup(parser_args={}, stations=['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087'],
var_all_dict={'o3': 'dma8eu', 'temp': 'maximum'}) var_all_dict={'o3': 'dma8eu', 'temp': 'maximum'})
caplog.set_level(logging.INFO) caplog.set_level(logging.INFO)
PreProcessing() with PreProcessing():
assert caplog.record_tuples[0] == ('root', 20, 'PreProcessing started') assert caplog.record_tuples[0] == ('root', 20, 'PreProcessing started')
assert caplog.record_tuples[1] == ('root', 20, 'check valid stations started') assert caplog.record_tuples[1] == ('root', 20, 'check valid stations started')
assert caplog.record_tuples[-1] == ('root', 20, PyTestRegex(r'run for \d+\.\d+s to check 5 station\(s\). Found ' assert caplog.record_tuples[-1] == ('root', 20, PyTestRegex(r'run for \d+\.\d+s to check 5 station\(s\). '
r'5/5 valid stations.')) r'Found 5/5 valid stations.'))
RunEnvironment().__del__() RunEnvironment().__del__()
def test_run(self, obj_with_exp_setup): def test_run(self, obj_with_exp_setup):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment