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

minor fix

parent 5cab39b2
No related branches found
No related tags found
2 merge requests!24include recent development,!19include tests for join downloads
Pipeline #27044 passed
......@@ -116,7 +116,7 @@ class DataPrep(object):
:return:
"""
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)
df_all[self.station[0]] = df
# convert df_all to xarray
......
......@@ -42,11 +42,11 @@ class TestPreProcessing:
ExperimentSetup(parser_args={}, stations=['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087'],
var_all_dict={'o3': 'dma8eu', 'temp': 'maximum'})
caplog.set_level(logging.INFO)
PreProcessing()
with PreProcessing():
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, PyTestRegex(r'run for \d+\.\d+s to check 5 station\(s\). Found '
r'5/5 valid stations.'))
assert caplog.record_tuples[-1] == ('root', 20, PyTestRegex(r'run for \d+\.\d+s to check 5 station\(s\). '
r'Found 5/5 valid stations.'))
RunEnvironment().__del__()
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