Masked array problem in python 2.4.4

Hi,

My plot_dates(x, y) call, while working in python 2.4, failed in python 2.4.4. x
here is dates array and y is a masked array returned by masked_values()from MA
module. After much debugging, I found that problem occurs at ma.asarray(y)
where y is the masked array with the following message:
     ***ValueError: object __array__ method not producing an array
Anyone knows which of my package (MA, numpy, ...) might be causing the conflict?
I could go back to the older version (on another machine), but I really like it
to work in the newer version. Any inputs would be appreciated.

Regards,
Jianfu Pan

Hello, could you provide us with:
- the numpy version
- the matplotlib version
- an example of code

That'd be easier for us to try and help you.
Thx a lot in advance

···

On Wednesday 07 March 2007 14:43:45 jpan@...1501... wrote:

Anyone knows which of my package (MA, numpy, ...) might be causing the
conflict? I could go back to the older version (on another machine), but I
really like it to work in the newer version. Any inputs would be
appreciated.

Thanks for quick response! Sample script:

···

--------------------------------------------------------------
#! /usr/local/bin/python
from matplotlib.backends.backend_agg import FigureCanvasAgg
from matplotlib.figure import Figure, SubplotParams
from MA import *
fig = Figure()
ax = fig.add_axes([0.1, 0.15, 0.8, 0.7])
dates = [732312.0, 732343.0, 732371.0]
data = [1., -9999., 5.]
data_masked = masked_values(data, -9999.)
ax.plot_date(dates, data_masked)
# END SCRIPT
--------------------------------------------------------------

The machine the script worked on has:
python 2.4, numarray-1.3.3, Numeric-23.8, matplotlib-0.83.2

The machine it didn't work has:
python 2.4.4, numpy-1.0.1, Numeric-24.2, matplotlib-0.90.0

Thanks again.
Jianfu

Quoting Pierre GM <pgmdevlist@...287...>:

On Wednesday 07 March 2007 14:43:45 jpan@...1501... wrote:
> Anyone knows which of my package (MA, numpy, ...) might be causing the
> conflict? I could go back to the older version (on another machine), but I
> really like it to work in the newer version. Any inputs would be
> appreciated.

Hello, could you provide us with:
- the numpy version
- the matplotlib version
- an example of code

That'd be easier for us to try and help you.
Thx a lot in advance

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

The problem was a use of (Numeric) MA with numpy. Pointing towards
matplotlib.numerix.ma solved the issue.