Changeset b297ba9 in sasmodels for sasmodels/core.py
- Timestamp:
- Mar 20, 2019 7:03:50 PM (5 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 4e28511
- Parents:
- 0d362b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/core.py
rd92182f rb297ba9 323 323 324 324 def test_composite_order(): 325 """ 326 Check that mixture models produce the same result independent of ordder. 327 """ 325 328 def test_models(fst, snd): 326 329 """Confirm that two models produce the same parameters""" … … 337 340 338 341 def build_test(first, second): 342 """Construct pair model test""" 339 343 test = lambda description: test_models(first, second) 340 344 description = first + " vs. " + second … … 382 386 383 387 def list_models_main(): 384 # type: () -> None388 # type: () -> int 385 389 """ 386 390 Run list_models as a main program. See :func:`list_models` for the … … 391 395 try: 392 396 models = list_models(kind) 393 except Exception as exc: 397 print("\n".join(models)) 398 except Exception: 394 399 print(list_models.__doc__) 395 400 return 1 396 397 print("\n".join(list_models(kind))) 401 return 0 398 402 399 403 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.