Opened 16 years ago

Closed 16 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 by Malte Marquarding, 16 years ago

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.