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

Raichur & Koppal Districts - Water Balance Error #12

Open vidhyakatral opened 1 year ago

vidhyakatral commented 1 year ago

Describe the bug 1) Trying to calculate Surface water Availability for Raichur and Koppal districts where error occurs after populating the layers and the value for Total Surfacewater availability is not showing. 2) Trying to calculate agricultural water demand for the above districts where error occurs while populating the crop details. The water demand value is not showing. 3) Demand Domestic side Calculate tab is not showing.

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/1Z3TLHLVYfoOx7otVhE1JcGd5HIQ5bzf6

Steps to reproduce the behavior:

  1. Select the feature which populates the village Data
  2. Calculates GW
  3. while calculating the agricultural demand error occurs

Expected behavior Surface water Availability should be shown Total crop water demand to be populated

Screenshots image

image

image

image

Desktop (please complete the following information):

Additional context 1) After Running Surfacewater tab-this error shows 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 205, in initSWaterAvailability self.popSWA() File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_waterbudget_widget.py", line 258, in popSWA WaterBodiesS1 = self.S1.calcNoWaterBodies(self.year,self.geometry) File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\libs\jaltol_surfacewater.py", line 116, in calcNoWaterBodies Map.addLayer(self.s1EMwbv,{},'Water Bodies Vector') File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\Map.py", line 25, in addLayer add_or_update_ee_layer(eeObject, visParams, name, shown, opacity) File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\utils.py", line 158, in add_or_update_ee_layer update_ee_layer_properties(layer, eeObject, visParams, shown, opacity) File "C:\Users/ATREE/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\utils.py", line 26, in update_ee_layer_properties layer.dataProvider().set_ee_object(eeObject) AttributeError: 'QgsRasterDataProvider' object has no attribute 'set_ee_object'

2) After calculating Demand Agriculture tab this Error shows:- 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'