Changeset af92b73 in sasmodels


Ignore:
Timestamp:
Mar 18, 2016 12:49:21 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
9c77bcf
Parents:
092cb3c
Message:

report an extra digit on timing comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    rd6850fa raf92b73  
    539539        try: 
    540540            base_value, base_time = time_calculation(base, pars, Nbase) 
    541             print("%s t=%.1f ms, intensity=%.0f" 
     541            print("%s t=%.2f ms, intensity=%.0f" 
    542542                  % (base.engine, base_time, sum(base_value))) 
    543543        except ImportError: 
     
    550550        try: 
    551551            comp_value, comp_time = time_calculation(comp, pars, Ncomp) 
    552             print("%s t=%.1f ms, intensity=%.0f" 
     552            print("%s t=%.2f ms, intensity=%.0f" 
    553553                  % (comp.engine, comp_time, sum(comp_value))) 
    554554        except ImportError: 
     
    584584        if Ncomp > 0: plt.subplot(131) 
    585585        plot_theory(data, base_value, view=view, use_data=False, limits=limits) 
    586         plt.title("%s t=%.1f ms"%(base.engine, base_time)) 
     586        plt.title("%s t=%.2f ms"%(base.engine, base_time)) 
    587587        #cbar_title = "log I" 
    588588    if Ncomp > 0: 
    589589        if Nbase > 0: plt.subplot(132) 
    590590        plot_theory(data, comp_value, view=view, use_data=False, limits=limits) 
    591         plt.title("%s t=%.1f ms"%(comp.engine, comp_time)) 
     591        plt.title("%s t=%.2f ms"%(comp.engine, comp_time)) 
    592592        #cbar_title = "log I" 
    593593    if Ncomp > 0 and Nbase > 0: 
Note: See TracChangeset for help on using the changeset viewer.