Bug report #9537

global name not defined

Added by maria prove almost 11 years ago. Updated almost 11 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
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

Description

Hi.

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
    self.processAlgorithm(progress)
  File "/Users/Maria/.qgis2/python/plugins/permaclim/GroundSurfaceTemperatureTime.py", line 195, in processAlgorithm
    gst.compute()
  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

History

#1 Updated by maria prove almost 11 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