Changeset 29fc2a3 in sasmodels for compare.py


Ignore:
Timestamp:
Nov 20, 2015 6:45:20 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
4eac427
Parents:
525f3a9
Message:

make sure sasmodels is on the path for compare.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • compare.py

    r0763009 r29fc2a3  
    88 
    99import numpy as np 
     10 
     11ROOT = dirname(__file__) 
     12sys.path.insert(0, ROOT)  # Make sure sasmodels is first on the path 
     13 
    1014 
    1115from sasmodels.bumps_model import Model, Experiment, plot_theory, tic 
     
    1620 
    1721# List of available models 
    18 ROOT = dirname(__file__) 
    1922MODELS = [basename(f)[:-3] 
    2023          for f in sorted(glob.glob(joinpath(ROOT,"sasmodels","models","[a-zA-Z]*.py")))] 
Note: See TracChangeset for help on using the changeset viewer.