Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timing scripts with run -t -N <N> fails on report output #800

Closed
heplesser opened this issue Sep 18, 2011 · 0 comments
Closed

Timing scripts with run -t -N <N> fails on report output #800

heplesser opened this issue Sep 18, 2011 · 0 comments
Labels
Milestone

Comments

@heplesser
Copy link

Timing script execution fails in IPython 0.11 in combination with Python 2.7.2 due to a formatting problem in the output, when requesting multiple script executions with run -t -N <N>:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/magic.pyc in magic_run(self, parameter_s, runner, file_finder)
   1695                                 print "\nIPython CPU timings (estimated):"
   1696                                 print "Total runs performed:",nruns
-> 1697                                 print "  Times  : %10.2f    %10.2f" % ('Total','Per run')
   1698                                 print "  User   : %10.2f s, %10.2f s." % (t_usr,t_usr/nruns)
   1699                                 print "  System : %10.2f s, %10.2f s." % (t_sys,t_sys/nruns)

The problem seems to be that strings are passed to float format specifiers on line 1697. In IPython 0.10.1, the corresponding line read

print "  Times : %10s    %10s" % ('Total','Per run')
djv pushed a commit to djv/ipython that referenced this issue Oct 11, 2011
minrk added a commit that referenced this issue Oct 11, 2011
@minrk minrk closed this as completed Oct 11, 2011
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants