diff --git a/mlair/data_handler/data_handler_mixed_sampling.py b/mlair/data_handler/data_handler_mixed_sampling.py index 1aec30b8dd7f4bd837aba6554c9e68b14375bd6c..23996c80c532d0cdb778f1d231d41c7d24527e6f 100644 --- a/mlair/data_handler/data_handler_mixed_sampling.py +++ b/mlair/data_handler/data_handler_mixed_sampling.py @@ -37,7 +37,7 @@ class DataHandlerMixedSamplingSingleStation(DataHandlerSingleStation): def load_and_interpolate(self, ind) -> [xr.DataArray, pd.DataFrame]: data, self.meta = self.load_data(self.path[ind], self.station, self.statistics_per_var, self.sampling[ind], - self.station_type, self.network, self.store_data_locally, start, end) + self.station_type, self.network, self.store_data_locally, self.start, self.end) data = self.interpolate(data, dim=self.time_dim, method=self.interpolation_method, limit=self.interpolation_limit) return data diff --git a/mlair/helpers/join.py b/mlair/helpers/join.py index f66b277bbca54bd6190ab0430c9f8c0307b3f5af..4683ba2acd6ae5d4090591234b50c3bfae27bffe 100644 --- a/mlair/helpers/join.py +++ b/mlair/helpers/join.py @@ -46,7 +46,7 @@ def download_join(station_name: Union[str, List[str]], stat_var: dict, station_t # correct stat_var values if data is not aggregated (hourly) if sampling == "hourly": - [stat_var.update({k: "values"}) for k in stat_var.keys()] + stat_var = {key: "values" for key in stat_var.keys()} # download all variables with given statistic data = None diff --git a/mlair/run_modules/pre_processing.py b/mlair/run_modules/pre_processing.py index 82af9cf02cda9401237bac15ccf0a52fa10acdad..4cee4a9744f33c86e8802aad27125cf0e0b30f3a 100644 --- a/mlair/run_modules/pre_processing.py +++ b/mlair/run_modules/pre_processing.py @@ -207,6 +207,7 @@ class PreProcessing(RunEnvironment): logging.info(f"check valid stations started{' (%s)' % (set_name if set_name is not None else 'all')}") # calculate transformation using train data if set_name == "train": + logging.info("setup transformation using train data exclusively") self.transformation(data_handler, set_stations) # start station check collection = DataCollection()