fix: throw error on invalid crs type#2533
Conversation
Signed-off-by: Emmanuel Ferdman <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2533 +/- ##
==========================================
- Coverage 55.5% 36.6% -18.9%
==========================================
Files 644 345 -299
Lines 124135 61808 -62327
==========================================
- Hits 68947 22672 -46275
+ Misses 55188 39136 -16052 🚀 New features to boost your workflow:
|
|
This flushed out some issues in our tests and in the synthetic valley mf6 example model. It seems a CRS string is required in some cases but we are not providing one. I'll defer here to someone more familiar with CRS and expectations of the rasters module maybe @jlarsen-usgs or @aleaf? |
|
@emmanuel-ferdman did you find this reading through the code, or in the "real world"? On second look, @mjreno and I are wondering if an error is really appropriate here. I'm going to run with this and remove the error in the meantime to get our CI back up and running. |
Reconsider the error which is the subject of #2533. Probably not the final word here, but rasterio.from_user_input() will raise an error if it can't parse the CRS string. Is this sufficient?
|
agreed that we should let rasterio raise this error. |
PR Summary
This really small PR simply adds the missing
raiseto the "invalid crs type" exception.