Opened 15 years ago

Closed 15 years ago

#157 closed defect (fixed)

plotter.set_histogram fails in asap-2.3.1

Reported by: Malte Marquarding Owned by: Malte Marquarding
Priority: normal Milestone: ASAP 2.4
Component: python Version: 2.0
Severity: normal Keywords: plotting, histogram
Cc: Cormac.Purcell@…

Description

 File "/usr/lib/python2.5/site-packages/asap/asapplotter.py", line 94, 
in plot
   self._plot(self._data)
 File "/usr/lib/python2.5/site-packages/asap/asapplotter.py", line 681, 
in _plot
   plotit(x,y)
 File "/usr/lib/python2.5/site-packages/asap/asaplotbase.py", line 168, 
in hist
   ymsk = y.raw_mask()
AttributeError: 'MaskedArray' object has no attribute 'raw_mask'

Change History (1)

comment:1 Changed 15 years ago by Malte Marquarding

Resolution: fixed
Status: newclosed

numpy >= 1.1 had changed the interface.

It now uses MaskedArray.data and MaskedArray.mask to access data and mask.

Fixed in trunk via if to support numpy < 1.1.

Note: See TracTickets for help on using tickets.