Changeset 8b25ee1 in sasmodels


Ignore:
Timestamp:
Jan 6, 2016 9:18:22 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:
9c79c32
Parents:
013adb7
Message:

in compare, -mono applies before specific parameters so that '-mono parname_pd_n=10' is a quick way to examine polydispersity on a single parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r013adb7 r8b25ee1  
    136136    pars = pars.copy() 
    137137    for p in pars: 
    138         if p.endswith("_pd"): pars[p] = 0 
     138        if p.endswith("_pd_n"): pars[p] = 0 
    139139    return pars 
    140140 
     
    562562        pars = randomize_pars(pars, seed=opts['seed']) 
    563563        print("Randomize using -random=%i"%opts['seed']) 
     564    if opts['mono']: 
     565        pars = suppress_pd(pars) 
    564566    pars.update(presets)  # set value after random to control value 
    565567    constrain_pars(model_definition, pars) 
    566568    constrain_new_to_old(model_definition, pars) 
    567     if opts['mono']: 
    568         pars = suppress_pd(pars) 
    569569    if opts['show_pars']: 
    570570        print("pars " + str(parlist(pars))) 
Note: See TracChangeset for help on using the changeset viewer.