Ignore:
Timestamp:
02/11/05 14:37:03 (19 years ago)
Author:
mar637
Message:

Added handling of environment variables throughout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r399 r411  
    160160        return
    161161
    162 def gain_el(scan, poly=None, filename="", method="linear", insitu=None, allaxes=None):
     162def gain_el(scan, poly=None, filename="", method="linear",
     163            insitu=None, allaxes=None):
    163164    """
    164165    Return a scan after applying a gain-elevation correction. The correction
     
    204205       poly = ()
    205206    if insitu is None: insitu = rcParams['insitu']
     207    from os.path import expandvars
     208    filename = expandvars(filename)
    206209    if not insitu:
    207210        from asap._asap import gainel as _gainEl
Note: See TracChangeset for help on using the changeset viewer.