Changeset 170ea69 in sasmodels
- Timestamp:
- Mar 18, 2016 8:09:02 AM (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:
- 9538fae
- Parents:
- 59ce4cb
- Location:
- example
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
example/sesansfit.py
ra06430c r170ea69 1 1 from bumps.names import * 2 2 from sasmodels import core, bumps_model, sesans 3 from sas.sascalc.dataloader.loader import Loader 3 4 4 5 HAS_CONVERTER = True … … 26 27 """ 27 28 try: 28 from sas.sascalc.dataloader.loader import Loader29 29 loader = Loader() 30 30 data = loader.load(file) 31 31 if data is None: raise IOError("Could not load file %r"%(file)) 32 data.needs_all_q = acceptance_angle is not None33 32 if HAS_CONVERTER == True: 34 33 default_unit = "A" … … 58 57 dy = err_data 59 58 sample = Sample() 60 acceptance_angle = acceptance_angle61 59 needs_all_q = acceptance_angle is not None 62 60 data = SESANSData1D() 61 data.acceptance_angle = acceptance_angle 63 62 63 data.needs_all_q = acceptance_angle is not None 64 64 if "radius" in initial_vals: 65 65 radius = initial_vals.get("radius") -
example/sesansfit.sh
rbdb653c r170ea69 1 1 #!/bin/bash 2 2 3 SASVIEW=$PWD/../../sasview/src 4 PYTHONPATH=$PWD/../:$PWD/../../bumps:$PWD/../../periodictable:$SASVIEW 3 # Need to fix the paths to sasmodels and sasview if no eggs present 4 echo $PWD 5 ONEUP="$(dirname "$PWD")" 6 PROJECTS="$(dirname "$ONEUP")" 7 CCOLON="C:/" 8 CSLASH="/c/" 9 SASMODELSBASE=$PROJECTS/sasmodels/ 10 SASMODELS="${SASMODELSBASE/$CSLASH/$CCOLON}" 11 SASVIEWBASE=$PROJECTS/sasview/src/ 12 SASVIEW="${SASVIEWBASE/$CSLASH/$CCOLON}" 13 PYTHONPATH="$SASVIEW;$SASMODELS" 5 14 export PYOPENCL_CTX PYTHONPATH 6 15
Note: See TracChangeset
for help on using the changeset viewer.