Bug report #9537

global name not defined

Added by maria prove over 7 years ago. Updated over 7 years ago.

Affected QGIS version:2.0.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18125



I'm trying to use a plugin (ProcessingPermaclim provider), but with one of the scripts I get the error "global name Tarray not defined".

Here is the log:

Uncaught error while executing algorithm
Traceback (most recent call last):
Traceback (most recent call last):
  File "/Users/Maria/.qgis2/python/plugins/processing/core/GeoAlgorithm.py", line 202, in execute
  File "/Users/Maria/.qgis2/python/plugins/permaclim/GroundSurfaceTemperatureTime.py", line 195, in processAlgorithm
  File "/Users/Maria/.qgis2/python/plugins/permaclim/GroundSurfaceTemperatureTime.py", line 120, in compute
    data = Tarray(T0_data, Hn_data, Ta_data, self.K, self.Qs).astype(numpy.float)
NameError: global name 'Tarray' is not defined

and attacher is the python script causing troubles..!

Thank you!

GroundSurfaceTemperatureTime.py Magnifier (6.71 KB) maria prove, 2014-02-11 03:58 AM


#1 Updated by maria prove over 7 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

ok, there was some extra spaces in front of TARRAY which apparently had been eluding my eyes for the last 2 days! :/ ;)

Also available in: Atom PDF