Skip to content
Snippets Groups Projects
Commit 862c0773 authored by leufen1's avatar leufen1
Browse files

changed check_for_negative_concentrations because it raised index errors e.g. for target data

parent 80513b80
No related branches found
No related tags found
3 merge requests!226Develop,!225Resolve "release v1.2.0",!197Resolve "REFAC: mixed sampling data handler loads to much data"
...@@ -271,7 +271,7 @@ class DataHandlerSingleStation(AbstractDataHandler): ...@@ -271,7 +271,7 @@ class DataHandlerSingleStation(AbstractDataHandler):
chem_vars = ["benzene", "ch4", "co", "ethane", "no", "no2", "nox", "o3", "ox", "pm1", "pm10", "pm2p5", chem_vars = ["benzene", "ch4", "co", "ethane", "no", "no2", "nox", "o3", "ox", "pm1", "pm10", "pm2p5",
"propane", "so2", "toluene"] "propane", "so2", "toluene"]
# used_chem_vars = list(set(chem_vars) & set(self.statistics_per_var.keys())) # used_chem_vars = list(set(chem_vars) & set(self.statistics_per_var.keys()))
used_chem_vars = list(set(chem_vars) & set(self.variables)) used_chem_vars = list(set(chem_vars) & set(data.variables.values))
data.loc[..., used_chem_vars] = data.loc[..., used_chem_vars].clip(min=minimum) data.loc[..., used_chem_vars] = data.loc[..., used_chem_vars].clip(min=minimum)
return data return data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment