[GRASS-dev] [GRASS GIS] #2688: get_np_array() calls grass.script.array without importing the module

#2688: get_np_array() calls grass.script.array without importing the module
----------------------+-------------------------
Reporter: lrntct | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Temporal | Version: svn-trunk
Keywords: numpy | CPU: x86-64
Platform: Linux |
----------------------+-------------------------
In space_time_datasets.py, the methods get_np_array() makes calls to
garray, but the corresponding module is not imported, resulting in an
error:
"NameError: global name 'garray' is not defined"

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2688&gt;
GRASS GIS <http://grass.osgeo.org>

#2688: get_np_array() calls grass.script.array without importing the module
-----------------------+-------------------------
  Reporter: lrntct | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: numpy
       CPU: x86-64 | Platform: Linux
-----------------------+-------------------------
Changes (by lrntct):

* Attachment "garray.patch" added.

proposed patch

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2688&gt;
GRASS GIS <http://grass.osgeo.org>