Changeset 42f1ad9 in sasmodels
- Timestamp:
- Mar 18, 2016 12:35:49 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:
- 824465b, 3a45c2c
- Parents:
- bfea0c2 (diff), 31c64d9 (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. - Location:
- example
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
example/fit_sesans.py
rbdb653c r4c1bfb3 1 import shlex, subprocess, sys 2 import platform 3 args = shlex.split("sesansfit.sh blah --edit") 4 args[1] = sys.argv[1] 5 if platform.system() != "Windows": 6 args = ["sh"] + args 7 shellFlag = False 8 else: 9 shellFlag = True 10 subprocess.Popen(args, shell=shellFlag) 1 #!/usr/bin/env python 2 import os 3 import sys 4 5 # Need to fix the paths to sasmodels and sasview if no eggs present 6 ONEUP=os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 7 PROJECTS=os.path.dirname(ONEUP) 8 SASMODELS=os.path.join(PROJECTS, 'sasmodels') 9 SASVIEW=os.path.join(PROJECTS, 'sasview', 'src') 10 BUMPS=os.path.join(PROJECTS, 'bumps') 11 12 sys.path.insert(0, BUMPS) 13 sys.path.insert(0, SASVIEW) 14 sys.path.insert(0, SASMODELS) 15 16 from bumps.gui.gui_app import main as gui 17 gui() -
example/sesansfit.py
r89ab393 rbfea0c2 19 19 @return: FitProblem for Bumps usage 20 20 """ 21 initial_vals['background'] = 0.0 21 22 try: 22 23 loader = Loader() … … 50 51 else: 51 52 radius = 1000 52 data.Rmax = 3 *radius # [A]53 data.Rmax = 30*radius # [A] 53 54 54 55 if isinstance(model, basestring):
Note: See TracChangeset
for help on using the changeset viewer.