Skip to content

Commit

Permalink
Add support for primary pollutant
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed Sep 10, 2024
1 parent f598b87 commit 18c2c8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions add-air-values.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aimport boto3
import boto3
import json
from decimal import *

Expand All @@ -17,8 +17,9 @@ def process_value(value, measurement, item):
"PM10_AQI_30": "PM10_aqi",
}

if measurement != "nan":
measurement = Decimal(str(measurement))
if value != "AQI_30_PRI":
if measurement != "nan":
measurement = Decimal(str(measurement))

if value in mapping:
item[mapping[value]] = measurement
Expand Down

0 comments on commit 18c2c8a

Please sign in to comment.