CIROH-UA / NGIAB_data_preprocess

Tools to subset hydrofabrics, generate forcings, create default realizations for NGIAB
5 stars 2 forks source link

Prevent hanging when clicking "Get Zarr" with Null basin list #8

Closed jameshalgren closed 1 week ago

jameshalgren commented 4 months ago

If a user clicks "Generate Forcing" (which isn't the current label on the button... but that's its function) when they have not created the subset geopackage, the system will mindlessly search for nothing forever.

We could add a simple message to prevent that or implement some kind of checking to return a message to the user if there is insufficient information to create the forcing subsets.

Something like, "There are no basins in the subset geopackage. Did you forget to push the 'subset geopackage' button?"