Changeset d07c883 in sasmodels for sasmodels/compare.py
- Timestamp:
- Jan 29, 2016 9:49:42 AM (8 years ago)
- 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:
- 803f835
- Parents:
- 299edd2 (diff), ed82794 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r1d4017a rd07c883 28 28 29 29 from __future__ import print_function 30 31 import sys 32 import math 33 from os.path import basename, dirname, join as joinpath 34 import glob 35 import datetime 36 import traceback 37 38 import numpy as np 39 40 from . import core 41 from . import kerneldll 42 from . import generate 43 from .data import plot_theory, empty_data1D, empty_data2D 44 from .direct_model import DirectModel 45 from .convert import revert_model, constrain_new_to_old 30 46 31 47 USAGE = """ … … 80 96 + USAGE) 81 97 82 83 84 import sys 85 import math 86 from os.path import basename, dirname, join as joinpath 87 import glob 88 import datetime 89 import traceback 90 91 import numpy as np 92 98 kerneldll.ALLOW_SINGLE_PRECISION_DLLS = True 99 100 # List of available models 93 101 ROOT = dirname(__file__) 94 sys.path.insert(0, ROOT) # Make sure sasmodels is first on the path95 96 97 from . import core98 from . import kerneldll99 from . import generate100 from .data import plot_theory, empty_data1D, empty_data2D101 from .direct_model import DirectModel102 from .convert import revert_model, constrain_new_to_old103 kerneldll.ALLOW_SINGLE_PRECISION_DLLS = True104 105 # List of available models106 102 MODELS = [basename(f)[:-3] 107 103 for f in sorted(glob.glob(joinpath(ROOT, "models", "[a-zA-Z]*.py")))]
Note: See TracChangeset
for help on using the changeset viewer.