[GRASS-dev] [GRASS GIS] #2824: g.gui.timeline throws exception when trying to display temporal dataset.
GRASS GIS
trac at osgeo.org
Fri Dec 11 12:32:44 PST 2015
#2824: g.gui.timeline throws exception when trying to display temporal dataset.
----------------------------+-------------------------
Reporter: pmav99 | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: 7.0.1
Keywords: g.gui.timeline | CPU: Unspecified
Platform: Unspecified |
----------------------------+-------------------------
I was trying to follow the temporal workshop and I am getting the
following exception:
{{{
GRASS 7.0.1 (NC_spm_temporal_workshop):~/repo > g.gui.timeline tempmean
Traceback (most recent call last):
File "/usr/lib/grass70/scripts/g.gui.timeline", line 64, in <module>
main()
File "/usr/lib/grass70/scripts/g.gui.timeline", line 57, in main
frame.SetDatasets(datasets)
File "/usr/lib/grass70/gui/wxpython/timeline/frame.py", line 444, in
SetDatasets
self._redraw()
File "/usr/lib/grass70/gui/wxpython/timeline/frame.py", line 364, in
_redraw
self._draw2dFigure()
File "/usr/lib/grass70/gui/wxpython/timeline/frame.py", line 316, in
_draw2dFigure
facecolors=color, alpha=ALPHA))
File "/home/grassuser/venv/local/lib/python2.7/site-
packages/matplotlib/__init__.py", line 1811, in inner
return func(ax, *args, **kwargs)
File "/home/grassuser/venv/local/lib/python2.7/site-
packages/matplotlib/axes/_axes.py", line 2339, in broken_barh
xranges = self.convert_xunits(xranges)
File "/home/grassuser/venv/local/lib/python2.7/site-
packages/matplotlib/artist.py", line 189, in convert_xunits
return ax.xaxis.convert_units(x)
File "/home/grassuser/venv/local/lib/python2.7/site-
packages/matplotlib/axis.py", line 1442, in convert_units
ret = self.converter.convert(x, self.units, self)
File "/home/grassuser/venv/local/lib/python2.7/site-
packages/matplotlib/dates.py", line 1553, in convert
return date2num(value)
File "/home/grassuser/venv/local/lib/python2.7/site-
packages/matplotlib/dates.py", line 380, in date2num
return _to_ordinalf_np_vectorized(d)
File "/home/grassuser/venv/local/lib/python2.7/site-
packages/numpy/lib/function_base.py", line 1573, in __call__
return self._vectorize_call(func=func, args=vargs)
File "/home/grassuser/venv/local/lib/python2.7/site-
packages/numpy/lib/function_base.py", line 1633, in _vectorize_call
ufunc, otypes = self._get_ufunc_and_otypes(func=func, args=args)
File "/home/grassuser/venv/local/lib/python2.7/site-
packages/numpy/lib/function_base.py", line 1597, in _get_ufunc_and_otypes
outputs = func(*inputs)
File "/home/grassuser/venv/local/lib/python2.7/site-
packages/matplotlib/dates.py", line 221, in _to_ordinalf
base = float(dt.toordinal())
AttributeError: 'numpy.float64' object has no attribute 'toordinal'
}}}
workshop link: http://ncsu-osgeorel.github.io/grass-temporal-workshop/
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2824>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list