atreebangalore / jaltol

a QGIS python plugin to make typology-specific Rural Water Security Plans. These plans help lead the user from data to decisions
MIT License
4 stars 3 forks source link

SPS - Barwah_Rewa village - CWR Population error #10

Open balakumaran247 opened 1 year ago

balakumaran247 commented 1 year ago

Describe the bug Trying to calculate agricultural water demand for the Barwah village (SPS) where error occurs while populating the crop details.

To Reproduce If using a custom shapefile please upload ZIP of the same to project google drive folder GISLayers and add link below. https://drive.google.com/drive/u/0/folders/12MAMLNbiXL7I04tNWFEP73CPNk6eWNIp

Steps to reproduce the behavior:

  1. selecting the feature populates the village data
  2. calculates GW & SW availability
  3. while calculating the agricultural demand error occurs

Expected behavior crop water demand to be populated

Screenshots image

Desktop (please complete the following information):

Additional context 2023-02-23T12:08:43 WARNING Traceback (most recent call last): File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 359, in initCropWaterRequirement self.popCropWaterRequirement() File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 389, in popCropWaterRequirement self.cwr_widget.popCropDetails(self.crop_details) File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_cwr_widget.py", line 95, in popCropDetails self.layout.itemAtPosition(row,0).widget().setCurrentText(crop) AttributeError: 'NoneType' object has no attribute 'widget'