|
From: jon s. <js...@so...> - 2002-12-15 21:38:30
|
Is there a limit to the capacity of convex?
This program causes my computer to reboot(!) when len(numbers) is 8,058.
Works fine when len(numbers) is 124.
If I change 'convex' to 'curve' the long data set works too.
I'm running windows xp home, Visual-2001-12-21.
------------------------------------------------
f=open('test.ach','r')
data=f.read()
f.close()
numbers=data.split()[11:] #trim comments
rangenum=range(len(numbers))
for n in rangenum:
numbers[n]=int(numbers[n])
if numbers[n] < 0:
numbers[n]=0
print len(numbers)
from visual import *
c=convex(x=rangenum,y=numbers)
------------------------------------------
Jonathan Schull, Ph.D.
Sc...@Di... <mailto:Sc...@Di...>
http://radio.weblogs.com/0104369/stories/2002/09/24/JonathanSchullOnOnePage.
html
<http://radio.weblogs.com/0104369/stories/2002/09/24/JonathanSchullOnOnePage
.html>
36 Brunswick St., Rochester NY 14607
585-738-6696 cell and v-mail
585-242-9497 landline
978-246-0487 fax
------------------------------------------
|