mirror of
https://github.com/JHUAPL/SIMoN.git
synced 2026-01-09 14:57:56 -05:00
issue #11 skip null granularities
Former-commit-id: c753c2f7c2389322011db099a1078098ac79b3e6
This commit is contained in:
@@ -80,7 +80,11 @@ def plot_mongo_doc(data, shapefile_dir=".", projection=4326, plot_width=1200, pl
|
||||
for dataset in datasets:
|
||||
|
||||
granularity = data['payload'][dataset]['granularity']
|
||||
print(f"dataset: {dataset}, granularity: {granularity}")
|
||||
if not granularity:
|
||||
print(f"skipping {dataset} (does not have a granularity specified)")
|
||||
continue
|
||||
else:
|
||||
print(f"plotting {dataset} (granularity: {granularity})")
|
||||
instance_col_name = 'ID'
|
||||
year = data['year']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user