Commit 35a87c7b authored by lukas leufen's avatar lukas leufen 👻
Browse files

select only target variable when loading target data for mixed sampling

parent 16851339
Pipeline #103366 passed with stages
in 11 minutes and 56 seconds
......@@ -60,7 +60,7 @@ class DataHandlerMixedSamplingSingleStation(DataHandlerSingleStation):
self.set_inputs_and_targets()
def load_and_interpolate(self, ind) -> [xr.DataArray, pd.DataFrame]:
vars = [self.variables, self.target_var]
vars = [self.variables, self.target_var][ind]
stats_per_var = helpers.select_from_dict(self.statistics_per_var, vars[ind])
data, self.meta = self.load_data(self.path[ind], self.station, stats_per_var, self.sampling[ind],
self.station_type, self.network, self.store_data_locally, self.data_origin,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment