Skip to content

Commit

Permalink
env-a22-nlc: #32 ignore stations/types where not calculation paramete…
Browse files Browse the repository at this point in the history
…rs are present
  • Loading branch information
clezag committed May 7, 2024
1 parent d5a0c74 commit 071dc57
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ def process_single_dataset(self, data, station_id, time):
temparature_key = "hightemp" if (data[T_INT] >= 20) else "lowtemp"
data_point_map = {}
for type_id in (value for value in data if value in TYPES_TO_ELABORATE): #Intersection
# ignore stations/types missing parameters #32
if PARAMETER_MAP[station_id] is None or PARAMETER_MAP[station_id][type_id] is None:
continue

value = data[type_id]
processed_value = None
processed_value = None
parameters = PARAMETER_MAP[station_id][type_id][temparature_key]
if ((type_id == NO2 or type_id == NO) and O3 in data and T_INT in data):
if(int(parameters["calc_version"]) == 1):
Expand Down

0 comments on commit 071dc57

Please sign in to comment.