[SciPy-user] Install problem - Overwriting message when importing scipy

Hugo Gamboa hgamboa at gmail.com
Wed Dec 21 10:04:11 CST 2005


Has anyone been able to reproduce the segmentation fault caused by fread?

Hugo Gamboa



from scipy import *
import timing

def tic():
    timing.start()

def tac(s=""):
    timing.finish()
    print(':ms:'+str(timing.milli())+" "+s)

tic()
a=randn(1000,1000)
tac("Generate data")


tic()
f=open("fwrite.mat","w")
io.fwrite(f,size(a),a,"d",)
tac("Write")

tic()
f=open("fwrite.mat","r")
b=io.fread(f,size(a),"d")  #FAILS - SEGMENTATION FAULT
tac("Read")



Hugo Gamboa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.scipy.net/pipermail/scipy-user/attachments/20051221/022b0aa1/attachment.htm


More information about the SciPy-user mailing list