Respected sir , I am working on the swat modflow software in QGIS.After preprocessing ,in simulation while checking the YES box for irrigation(pumping from MODFLOW) it shows this python error.I used the reference file that is QSWATMODFLOW tutorial only . i think the tutorial zip file does not contain the well shapefiles ,observed discharge csv file. could solve this problem.
i used latest version of the QSWATMOD2 plugin and QGIS is 3.28.10
line 99, in create_conv_runoff
wel_max = int(data[0][0])
UnboundLocalError: local variable 'data' referenced before assignment