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 071dc57 commit 644e2cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def process_single_dataset(self, data, station_id, time):
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:
if PARAMETER_MAP.get(station_id) is None or PARAMETER_MAP[station_id].get(type_id) is None:
continue

value = data[type_id]
Expand Down

0 comments on commit 644e2cf

Please sign in to comment.