ResonantGeoData / RD-WATCH

RD-WATCH Documentation
https://resonantgeodata.github.io/RD-WATCH/
Apache License 2.0
7 stars 5 forks source link

additional modifications to support region constraint relaxation #491

Closed BryonLewis closed 2 months ago

BryonLewis commented 3 months ago

Updating the region_id constraint in the single schema would only allow for custom region names when creating a model run. Other portions of the code utilize the region_id constraint.

I did this quickly so there may be some more things we would want to enforce.

Below I've attached a quick Command Line python script that can take a folder (like a proposal or ground truth set) and convert them all to utilizing a custom region name. Just python RegionNameConverter.py {parent folder of geoJSONS} {new region name}. It renames the files and updates the geoJSON properties for region_id and site_id. I did this so I could test importing updated data.

I took a KR_R002 folder ran the converter to switch it to "SampleRegionName" and then imported it into RD-WATCH using: python loadModelRun.py 'SampleRegionName' "./SampleRegionName/**/SampleRegionName*.geojson" --title SampleRegionName --performer_shortcode 'KIT'. Hopefully this helps with finding any additional corner cases.

image

RegionNameConverter.txt

BryonLewis commented 3 months ago

@mvandenburgh Tagging you to review this to double-check any details I missed regarding allowing open-ended Region Names.