Changeset a4e2ae5 in sasmodels


Ignore:
Timestamp:
Mar 21, 2016 11:20:06 AM (8 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:
445d1c0
Parents:
1edf610
Message:

skip the precalc if not doing timing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r1edf610 ra4e2ae5  
    452452    """ 
    453453    # initialize the code so time is more accurate 
    454     #value = calculator(**suppress_pd(pars)) 
     454    if Nevals > 1: 
     455        value = calculator(**suppress_pd(pars)) 
    455456    toc = tic() 
    456457    for _ in range(max(Nevals, 1)):  # make sure there is at least one eval 
Note: See TracChangeset for help on using the changeset viewer.