Changeset e922c5d in sasmodels
- Timestamp:
- Nov 22, 2015 9:58:04 PM (9 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:
- 87e70a3
- Parents:
- 3b4243d
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
compare.sh
r648393e re922c5d 9 9 set -x 10 10 11 ./compare.py$*11 python -m sasmodels.compare $* -
compare_many.sh
r7cf2cfd re922c5d 7 7 #echo PYTHONPATH=$PYTHONPATH 8 8 9 ./compare_many.py $*9 python -m sasmodels.compare_many $* 10 10 11 11 #for dim in 1d100 2d32; do 12 # ./compare_many.py all 100 $dim 0 > ${dim}_poly_0.csv13 # ./compare_many.py all 100 $dim 1e-5 > ${dim}_poly_1e-5.csv14 # ./compare_many.py all 100 $dim 1e-3 > ${dim}_poly_1e-3.csv15 # ./compare_many.py all 100 $dim mono > ${dim}_mono.csv12 # python -m sasmodels.compare_many all 100 $dim 0 > ${dim}_poly_0.csv 13 # python -m sasmodels.compare_many all 100 $dim 1e-5 > ${dim}_poly_1e-5.csv 14 # python -m sasmodels.compare_many all 100 $dim 1e-3 > ${dim}_poly_1e-3.csv 15 # python -m sasmodels.compare_many all 100 $dim mono > ${dim}_mono.csv 16 16 #done 17 17 -
sasmodels/compare.py
r7cf2cfd re922c5d 14 14 15 15 16 from sasmodels import core 17 from sasmodels import kerneldll 18 from sasmodels.data import plot_theory, empty_data1D, empty_data2D 19 from sasmodels.direct_model import DirectModel 20 from sasmodels.convert import revert_model 16 from . import core 17 from . import kerneldll 18 from . import models 19 from .data import plot_theory, empty_data1D, empty_data2D 20 from .direct_model import DirectModel 21 from .convert import revert_model 21 22 kerneldll.ALLOW_SINGLE_PRECISION_DLLS = True 22 23 23 24 # List of available models 24 25 MODELS = [basename(f)[:-3] 25 for f in sorted(glob.glob(joinpath(ROOT," sasmodels","models","[a-zA-Z]*.py")))]26 for f in sorted(glob.glob(joinpath(ROOT,"models","[a-zA-Z]*.py")))] 26 27 27 28 # CRUFT python 2.6 … … 396 397 397 398 def get_demo_pars(name): 398 import sasmodels.models399 399 __import__('sasmodels.models.'+name) 400 model = getattr( sasmodels.models, name)400 model = getattr(models, name) 401 401 pars = getattr(model, 'demo', None) 402 402 if pars is None: pars = dict((p[0],p[2]) for p in model.parameters) -
sasmodels/compare_many.py
r7cf2cfd re922c5d 5 5 import numpy as np 6 6 7 from sasmodelsimport core8 from sasmodels.kernelcl import environment9 from compare import (MODELS, randomize_model, suppress_pd, eval_sasview,10 eval_opencl, eval_ctypes, make_data, get_demo_pars,11 columnize)7 from . import core 8 from .kernelcl import environment 9 from .compare import (MODELS, randomize_model, suppress_pd, eval_sasview, 10 eval_opencl, eval_ctypes, make_data, get_demo_pars, 11 columnize) 12 12 13 13 def get_stats(target, value, index):
Note: See TracChangeset
for help on using the changeset viewer.