inbo / niche_vlaanderen

Python package to run the NICHE Vlaanderen model
https://inbo.github.io/niche_vlaanderen/
MIT License
5 stars 0 forks source link

Calibration module: make HAB-pHAB fields case insensitive #302

Closed cecileherr closed 1 year ago

cecileherr commented 1 year ago

Would it be possible to make the script insensitive for the letter case of the fields HAB0/hab0 and pHAB0/PHAB0/phab0? I realize that the case may differ between different versions of the habitatmap., so it would come in handy.

johanvdw commented 1 year ago

closed in the commit above

cecileherr commented 1 year ago

Tested with PHAB1 -> 5 instead of pHAB1 ->5 en this still gives an error:

simplebr = nv.Niche()
simplebr.run_config_file("../tests/data/bwk/niche_brasschaat/simple.yaml")

from niche_vlaanderen.validation import NicheValidation

simplebr_validation = NicheValidation(niche=simplebr, map="../tests/data/bwk_tiny/bwk_clip_PHAB.shp")

bwk_clip.shp with uppercase PHAB: bwk_clip_PHAB.zip

What works now:

johanvdw commented 1 year ago

fixed also for proportion