Changeset b6f10d8 in sasmodels
- Timestamp:
- Oct 17, 2016 10:35:02 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 158cee4
- Parents:
- 0b040de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r0b040de rb6f10d8 886 886 'mono' : False, 887 887 # Default to magnetic a magnetic moment is set on the command line 888 'magnetic' : any(v.startswith('M0:') for v in values),888 'magnetic' : False, 889 889 'show_pars' : False, 890 890 'show_hist' : False, … … 971 971 pars = suppress_pd(pars) 972 972 pars2 = suppress_pd(pars2) 973 if not opts['magnetic']: 974 pars = suppress_magnetism(pars) 975 pars2 = suppress_magnetism(pars2) 973 976 974 977 # Fill in parameters given on the command line … … 988 991 presets2[k] = float(v2) if isnumber(v2) else v2 989 992 993 # If pd given on the command line, default pd_n to 35 994 for k, v in list(presets.items()): 995 if k.endswith('_pd'): 996 presets.setdefault(k+'_n', 35.) 997 for k, v in list(presets2.items()): 998 if k.endswith('_pd'): 999 presets2.setdefault(k+'_n', 35.) 1000 990 1001 # Evaluate preset parameter expressions 991 1002 context = MATH.copy() … … 1007 1018 constrain_pars(model_info, pars) 1008 1019 constrain_pars(model_info2, pars2) 1009 if not opts['magnetic']:1010 pars = suppress_magnetism(pars)1011 pars2 = suppress_magnetism(pars2)1012 1020 1013 1021 same_model = name == name2 and pars == pars
Note: See TracChangeset
for help on using the changeset viewer.