lachlangrose / GeoTrace

QGIS Plugin for Semi-Automatic Geological Feature Extraction
22 stars 10 forks source link

Python error when running Cost calculator on QGIS 3.14 #23

Open yukon-aik opened 3 years ago

yukon-aik commented 3 years ago

Good day. I have the GeoTrace installed successfully on W10, QGIS 3.14, python v3.7.

I have tried running the cost calculator using my own geological image and also tried the Bingie Bingie Survey QGIS project. However when running the cost calculator, only "darkness" able to output a new raster while others throw the similar python error like below:

2021-03-26T14:41:24 WARNING Traceback (most recent call last): File "C:/Users/ka.tan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\GeoTrace\geo_trace_dialog.py", line 368, in run_costcalculator calc.run_calculator(c[0], self.cost_name.text()) File "C:\Users\ka.tan\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\GeoTrace\tools\gttracetool.py", line 537, in run_calculator array = self.calc_edges(4) File "C:\Users\ka.tan\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\GeoTrace\tools\gttracetool.py", line 561, in calc_edges self.layer_to_numpy(self.layer) File "C:\Users\ka.tan\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\GeoTrace\tools\gttracetool.py", line 492, in layer_to_numpy self.arrays.append(np.rot90(array,3)) AttributeError: 'CostCalculator' object has no attribute 'arrays'

Please can you provide help on this?

JFitFug commented 3 years ago

I have the same issue - anyone found a way to resolve this?

lau089 commented 2 years ago

Same issue

Brick095 commented 10 months ago

I am having the exact same issue.. anyone managed to solve this?