Changeset f72d70a in sasmodels
- Timestamp:
- Mar 7, 2017 4:44:59 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:
- 598857b
- Parents:
- c68c5e9
- Location:
- sasmodels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
rd504bcd rf72d70a 321 321 if '*' in name: 322 322 name = name.split('*')[0] 323 324 # Suppress magnetism for python models (not yet implemented) 325 if callable(model_info.Iq): 326 pars.update(suppress_magnetism(pars)) 323 327 324 328 if name == 'barbell': -
sasmodels/compare_many.py
r5124c969 rf72d70a 189 189 Print the command usage string. 190 190 """ 191 print("usage: compare_many.py MODEL COUNT (1dNQ|2dNQ) (CUTOFF|mono) (single|double|quad)") 191 print("usage: compare_many.py MODEL COUNT (1dNQ|2dNQ) (CUTOFF|mono) (single|double|quad)", 192 file=sys.stderr) 192 193 193 194 … … 223 224 below the cutoff will be ignored. Use "mono" for monodisperse models. The 224 225 choice of polydisperse parameters, and the number of points in the distribution 225 is set in compare.py defaults for each model. 226 is set in compare.py defaults for each model. Polydispersity is given in the 227 "demo" attribute of each model. 226 228 227 229 PRECISION is the floating point precision to use for comparisons. If two 228 precisions are given, then compare one to the other, ignoring sasview. 230 precisions are given, then compare one to the other. Precision is one of 231 fast, single, double for GPU or single!, double!, quad! for DLL. If no 232 precision is given, then use single and double! respectively. 229 233 230 234 Available models: … … 236 240 Main program. 237 241 """ 238 if len(argv) not in ( 5, 6):242 if len(argv) not in (3, 4, 5, 6): 239 243 print_help() 240 244 return … … 244 248 model_list = [target] if target in MODELS else core.list_models(target) 245 249 except ValueError: 246 print('Bad model %s. Use model type or one of:' %model)250 print('Bad model %s. Use model type or one of:' % target, file=sys.stderr) 247 251 print_models() 248 252 print('model types: all, py, c, double, single, opencl, 1d, 2d, nonmagnetic, magnetic') … … 253 257 assert argv[2][1] == 'd' 254 258 Nq = int(argv[2][2:]) 255 mono = argv[3] == 'mono'259 mono = len(argv) <= 3 or argv[3] == 'mono' 256 260 cutoff = float(argv[3]) if not mono else 0 257 base = argv[4] 258 comp = argv[5] if len(argv) > 5 else " sasview"261 base = argv[4] if len(argv) > 4 else "single" 262 comp = argv[5] if len(argv) > 5 else "double!" 259 263 except Exception: 260 264 traceback.print_exc()
Note: See TracChangeset
for help on using the changeset viewer.