mirror of
https://github.com/ANL-CEEESA/RELOG.git
synced 2025-12-06 23:58:51 -06:00
Enable geodb in input files
This commit is contained in:
@@ -53,6 +53,11 @@ function parse(json)::Instance
|
||||
# Create collection centers
|
||||
if "initial amounts" in keys(product_dict)
|
||||
for (center_name, center_dict) in product_dict["initial amounts"]
|
||||
if "location" in keys(center_dict)
|
||||
point = geodb_query(center_dict["location"])
|
||||
center_dict["latitude (deg)"] = point.lat
|
||||
center_dict["longitude (deg)"] = point.lon
|
||||
end
|
||||
center = CollectionCenter(
|
||||
length(collection_centers) + 1,
|
||||
center_name,
|
||||
|
||||
Reference in New Issue
Block a user