Changes in / [886a89d:9538fae] in sasmodels
- 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.