Travis Oliphant | 3 Sep 2005 01:53
Favicon

scipy core (Numeric3) win32 binaries to play with

  <http://www.scipy.org/download/misc/folder_contents>
If anybody has just been waiting for a windows binary to try out the new 
Numeric (scipy.base) you can download this.

from scipy.base import *   (replaces from Numeric import *)

The installer is here:

http://numeric.scipy.org/files/scipy_core-0.4.0.win32-py2.4.exe

<http://www.scipy.org/download/misc/folder_contents>

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Alan G Isaac | 3 Sep 2005 02:38
Picon
Favicon

Re: scipy core (Numeric3) win32 binaries to play with

On Fri, 02 Sep 2005, Travis Oliphant apparently wrote: 
> http://numeric.scipy.org/files/scipy_core-0.4.0.win32-py2.4.exe 

So far so good.

Thanks!
Alan Isaac
Xavier Gnata | 5 Sep 2005 11:03
Picon

Re: [SciPy-user] Re: [SciPy-dev] scipy core (Numeric3) win32 binaries to play with

Alan G Isaac wrote:

>On Fri, 02 Sep 2005, Travis Oliphant apparently wrote: 
>  
>
>>http://numeric.scipy.org/files/scipy_core-0.4.0.win32-py2.4.exe 
>>    
>>
>
>So far so good.
>
>Thanks!
>Alan Isaac
>
>_______________________________________________
>SciPy-user mailing list
>SciPy-user <at> scipy.net
>http://www.scipy.net/mailman/listinfo/scipy-user
>
>  
>
Hi,

That's great news! :)
Where are the sources corresponding with this windows release (I would 
like to test that under linux asap)?
Is there any beta version documentation?

Thanks.
Xavier.
(Continue reading)

Daniel Sheltraw | 6 Sep 2005 20:44
Picon
Favicon

Linux to Windows porting question

Hello NumPy Listees

I am trying to port some code to Windows that works fine 
under Linux. The offending line
is:

     blk = fromstring(f_fid.read(BLOCK_LEN), 
num_type).byteswapped().astype(Float32).tostring()

The error I get is:

     ValueError: string size must be a multiple of element 
size

Does anyone have an idea where the problem might be? 
BLOCK_LEN is specified in bytes
and num_type is Int32.

Thanks,
Daniel

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Robert Kern | 6 Sep 2005 20:49
Favicon

Re: Linux to Windows porting question

Daniel Sheltraw wrote:
> Hello NumPy Listees
> 
> I am trying to port some code to Windows that works fine under Linux.
> The offending line
> is:
> 
>     blk = fromstring(f_fid.read(BLOCK_LEN),
> num_type).byteswapped().astype(Float32).tostring()
> 
> The error I get is:
> 
>     ValueError: string size must be a multiple of element size
> 
> Does anyone have an idea where the problem might be? BLOCK_LEN is
> specified in bytes
> and num_type is Int32.

Is f_fid opened in binary mode?

  f_fid = open(filename, 'rb')

It should be.

--

-- 
Robert Kern
rkern <at> ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
(Continue reading)

Greg Ewing | 7 Sep 2005 05:09
Picon
Picon
Favicon

Re: Linux to Windows porting question

Daniel Sheltraw wrote:

>     blk = fromstring(f_fid.read(BLOCK_LEN), 
> num_type).byteswapped().astype(Float32).tostring()
> 
> The error I get is:
> 
>     ValueError: string size must be a multiple of element size

Did you open the file in binary mode?

--

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing <at> canterbury.ac.nz	   +--------------------------------------+

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Daniel Sheltraw | 7 Sep 2005 22:40
Picon
Favicon

Re: Linux to Windows porting question

The question was answered yesterday and that was the
answer> thanks

On Wed, 07 Sep 2005 15:09:04 +1200
  Greg Ewing <greg.ewing <at> canterbury.ac.nz> wrote:
> Daniel Sheltraw wrote:
> 
>>     blk = fromstring(f_fid.read(BLOCK_LEN), 
>> num_type).byteswapped().astype(Float32).tostring()
>> 
>> The error I get is:
>> 
>>     ValueError: string size must be a multiple of 
>>element size
> 
> Did you open the file in binary mode?
> 
> -- 
> Greg Ewing, Computer Science Dept, 
>+--------------------------------------+
> University of Canterbury,	   | A citizen of 
>NewZealandCorp, a	  |
> Christchurch, New Zealand	   | wholly-owned subsidiary 
>of USA Inc.  |
> greg.ewing <at> canterbury.ac.nz	 
>  +--------------------------------------+

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
(Continue reading)

Joost van Evert | 9 Sep 2005 22:13
Picon

[Fwd: compression in storage of Numeric/numarray objects]


Picon
From: Joost van Evert <joostvanevert <at> gmail.com>
Subject: compression in storage of Numeric/numarray objects
Date: 2005-09-09 16:08:02 GMT
Hi List,

is it possible to use compression while storing numarray/Numeric
objects?

Regards,
Joost
John Hunter | 9 Sep 2005 22:06

Re: [Fwd: compression in storage of Numeric/numarray objects]

>>>>> "Joost" == Joost van Evert <phjoost <at> gmail.com> writes:

    Joost> is it possible to use compression while storing
    Joost> numarray/Numeric objects?

Sure

    In [35]: s = rand(10000)

    In [36]: file('uncompressed.dat', 'wb').write(s.tostring())

    In [37]: ls -l uncompressed.dat
    -rw-r--r--  1 jdhunter jdhunter 80000 2005-09-09 15:04 uncompressed.dat

    In [38]: gzip.open('compressed.dat', 'wb').write(s.tostring())

    In [39]: ls -l compressed.dat
    -rw-r--r--  1 jdhunter jdhunter 41393 2005-09-09 15:04 compressed.dat

Compression ration for more regular data will be better.

JDH

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Joost van Evert | 9 Sep 2005 22:41
Picon

Re: [Fwd: compression in storage of Numeric/numarray objects]

On Fri, 2005-09-09 at 15:06 -0500, John Hunter wrote:
> >>>>> "Joost" == Joost van Evert <phjoost <at> gmail.com> writes:
> 
>     Joost> is it possible to use compression while storing
>     Joost> numarray/Numeric objects?
> 
> 
> Sure
> 
>     In [35]: s = rand(10000)
> 
>     In [36]: file('uncompressed.dat', 'wb').write(s.tostring())
> 
>     In [37]: ls -l uncompressed.dat
>     -rw-r--r--  1 jdhunter jdhunter 80000 2005-09-09 15:04 uncompressed.dat
> 
>     In [38]: gzip.open('compressed.dat', 'wb').write(s.tostring())
> 
>     In [39]: ls -l compressed.dat
>     -rw-r--r--  1 jdhunter jdhunter 41393 2005-09-09 15:04 compressed.dat
> 
Thanks, this helps me, but I think not enough, because the arrays I work
on are sometimes >1Gb(Correlation matrices). The tostring method would
explode the size, and result in a lot of swapping. Ideally the
compression also works with memmory mapped arrays.

Greets,

Joost

(Continue reading)


Gmane