[IPython-user] Test results (good?)
Ryan Krauss
ryanlists@gmail....
Wed Apr 25 22:37:27 CDT 2007
I just downloaded 0.8.1 and pyreadline 1.4.3.rc1 and tested the Ctrl-C
interrupt. I think it worked but don't know how clean an exit I was
supposed to get. My script stopped but printed out this:
In [2]: run quiz_06_generator.py
---------------------------------------------------------------------------
exceptions.KeyboardInterrupt Traceback (most recent call
last)
E:\siue\356\quizzes\quiz_06_freq_domain\quiz_06_generator.py
86 bodeplot(fi, f, tf, phaseticks=phaseticks, savepath=bodename, linewi
dth=2.0)
87
---> 88 gen_step(sys1,1,endname='sys1')
89 gen_bode(sys1,2,endname='sys1',phaseticks=arange(0,-100,-15))
90
E:\siue\356\quizzes\quiz_06_freq_domain\quiz_06_generator.py in gen_step(sys, fi
, endname, lsim2)
76 else:
77 stepname=None
---> 78 step_response(sys,t,u,fi,stepname,lsim2=lsim2)
79
80 def gen_bode(sys,fi,endname=None, phaseticks=None):
E:\siue\356\quizzes\quiz_06_freq_domain\quiz_06_generator.py in step_response(sy
s, t, u, fi, filename, lsim2)
57 if filename:
58 savefig(filename)
---> 59 os.system('epstopdf '+filename)
60
61
KeyboardInterrupt:
WARNING: Failure executing file: <quiz_06_generator.py>
---------------------------------------------------------------------------
exceptions.AttributeError Traceback (most recent call
last)
E:\siue\356\quizzes\quiz_06_freq_domain\<ipython console>
C:\Python24\Lib\site-packages\IPython\iplib.py in ipmagic(self, arg_s)
955 else:
956 magic_args = self.var_expand(magic_args,1)
--> 957 return fn(magic_args)
958
959 def ipalias(self,arg_s):
C:\Python24\Lib\site-packages\IPython\Shell.py in magic_run(self, parameter_s)
544
545 def magic_run(self,parameter_s=''):
--> 546 Magic.magic_run(self,parameter_s,runner=self.mplot_exec)
547
548 # Fix the docstring so users see the original as well
C:\Python24\Lib\site-packages\IPython\Magic.py in magic_run(self, parameter_s, r
unner)
1674 if restore_main:
1675 sys.modules['__main__'] = restore_main
-> 1676 self.shell.reloadhist()
1677
1678 return stats
C:\Python24\Lib\site-packages\IPython\iplib.py in reloadhist(self)
1255
1256 if self.has_readline:
-> 1257 self.readline.clear_history()
1258 self.readline.read_history_file(self.shell.histfile)
1259
AttributeError: 'module' object has no attribute 'clear_history'
Apparently it was in the middle of an os.system call to epstopdf (the
script saves a bunch of figures to eps and then calls epstopdf to make
pdf's. The figures are being saved from matplotlib.
Ryan
More information about the IPython-user
mailing list