Changes in / [9538fae:886a89d] in sasmodels


Ignore:
Location:
example
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • example/sesansfit.py

    r170ea69 ra06430c  
    11from bumps.names import * 
    22from sasmodels import core, bumps_model, sesans 
    3 from sas.sascalc.dataloader.loader import Loader 
    43 
    54HAS_CONVERTER = True 
     
    2726    """ 
    2827    try: 
     28        from sas.sascalc.dataloader.loader import Loader 
    2929        loader = Loader() 
    3030        data = loader.load(file) 
    3131        if data is None: raise IOError("Could not load file %r"%(file)) 
     32        data.needs_all_q = acceptance_angle is not None 
    3233        if HAS_CONVERTER == True: 
    3334            default_unit = "A" 
     
    5758            dy = err_data 
    5859            sample = Sample() 
     60            acceptance_angle = acceptance_angle 
    5961            needs_all_q = acceptance_angle is not None 
    6062        data = SESANSData1D() 
    61         data.acceptance_angle = acceptance_angle 
    6263 
    63     data.needs_all_q = acceptance_angle is not None 
    6464    if "radius" in initial_vals: 
    6565        radius = initial_vals.get("radius") 
  • example/sesansfit.sh

    r170ea69 rbdb653c  
    11#!/bin/bash 
    22 
    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" 
     3SASVIEW=$PWD/../../sasview/src 
     4PYTHONPATH=$PWD/../:$PWD/../../bumps:$PWD/../../periodictable:$SASVIEW 
    145export PYOPENCL_CTX PYTHONPATH 
    156 
Note: See TracChangeset for help on using the changeset viewer.