Ignore:
Timestamp:
08/14/06 14:13:10 (18 years ago)
Author:
mar637
Message:

added numpy/numarray detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r1117 r1134  
    319319    return
    320320
     321try:
     322    import numpy.core as NUM
     323except ImportError:
     324    try:
     325        import numarray as NUM
     326    except ImportError:
     327        raise ImportError("You need to have numpy or numarray installed")
     328
    321329from asapfitter import fitter
    322330from asapreader import reader
     
    326334from scantable import scantable
    327335from asaplinefind import linefinder
    328 #from asapfit import *
    329 
    330 from numarray import logical_and as mask_and
    331 from numarray import logical_or as mask_or
    332 from numarray import logical_not as mask_not
     336from linecatalog import linecatalog
     337
     338mask_and = NUM.logical_and
     339mask_or = NUM.logical_or
     340mask_not = NUM.logical_not
    333341
    334342if rcParams['useplotter']:
     
    337345    plotter = asapplotter(gui)
    338346    del gui
    339 
    340347
    341348__date__ = '$Date$'.split()[1]
Note: See TracChangeset for help on using the changeset viewer.