Re: [Numpy-discussion] passing a C array to embedded Python fromC code

2008-10-30 Thread Anthony Floyd
on%2Fswig-numpy%2F%23LV&sl=fr&tl=en&hl=en&ie=UTF-8 Anthony. -- Anthony Floyd, PhD Convergent Manufacturing Technologies Inc. 6190 Agronomy Rd, Suite 403 Vancouver BC V6T 1Z3 CANADA Email: [EMAIL PROTECTED] | Tel: 604-822-9682 x102 WWW: http://www.convergent.ca| Fax:

Re: [Numpy-discussion] Masked arrays and pickle/unpickle

2008-07-17 Thread Anthony Floyd
> Further, could we rename numpy.ma.core to numpy.ma._core? I think we > should make it clear that users should not import from core directly. Just to add a bit of noise here, it's not that we were importing directly from .core, it's that pickle was telling us that the actual class associated wit

Re: [Numpy-discussion] Masked arrays and pickle/unpickle

2008-07-17 Thread Anthony Floyd
> > What I need to know is how I can trick pickle or Numpy to > put the old class into the new class. > > If you have an example data-file, send it to me off-list and I'll > figure out what to do. Maybe it is as simple as > > np.core.ma = np.oldnumeric.ma Yes, pretty much. We've put ma.py

Re: [Numpy-discussion] Masked arrays and pickle/unpickle

2008-07-17 Thread Anthony Floyd
Hi Stéfan, > 2008/7/16 Anthony Floyd <[EMAIL PROTECTED]>: > > Unfortunately, when we try to unpickle the data saved with > Numpy 1.0.3 > > in the new code using Numpy 1.1.0, it chokes because it can't import > > numpy.core.ma for the masked arrays. A check of

[Numpy-discussion] Masked arrays and pickle/unpickle

2008-07-16 Thread Anthony Floyd
on how we can unpickle the old data files and update the references to the new classes? Thanks, Anthony. -- Anthony Floyd, PhD Convergent Manufacturing Technologies Inc. 6190 Agronomy Rd, Suite 403 Vancouver BC V6T 1Z3 CANADA Email: [EMAIL PROTECTED] | Tel: 604-822-9682 x102 W