gicait / PyAEZ

PyAEZ is a python package consisted of many algorithms related to Agro-ecalogical zoning (AEZ) framework.
MIT License
84 stars 55 forks source link

error in NB2 aez.readCropandCropCycleParameters #124

Closed handuGIS closed 6 months ago

handuGIS commented 6 months ago

hi, there is an error. When I run the aez.readCropandCropCycleParameters. I set these index as nan, but the optional thermal screening function is still activated.

屏幕截图 2024-04-01 161307 屏幕截图 2024-04-01 161624

NokuzaSezo97 commented 6 months ago

Hi @handuGIS,

Instead of setting nan as #N/A, just nan will do. Hope this helps.

Swun Wunna Htet

handuGIS commented 6 months ago

hi @NokuzaSezo97, I took your advice, but the same error still exists

NokuzaSezo97 commented 6 months ago

Hi @handuGIS,

I just tested and discovered a minor bug which the thermal screening flag is activated even when the threshold values are not provided, thus encountering this error. I'll fix this bug immediately. Kindly redownload or clone the master repository tomorrow for accessing the revised version. My sincere apologies for the delay.

Regards,

Swun Wunna Htet

handuGIS commented 6 months ago

ok! thank you very much for your reply. Hope you solve this bug smoothly.