Changeset 1154
- Timestamp:
- 08/21/06 13:42:34 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/linecatalog.py
r1153 r1154 24 24 25 25 def __init__(self, name): 26 lcbase.__init__(self, name) 26 fpath = os.path.abspath(os.path.expandvars(os.path.expanduser(name))) 27 lcbase.__init__(self, fpath) 27 28 28 29 def summary(self): … … 64 65 raise ValueError("%s is not a valid unit." % unit) 65 66 # the table conatins values in MHz 66 lcbase.set_freq_limits(self, fmin /base[unit], fmax/base[unit])67 lcbase.set_freq_limits(self, fmin*base[unit], fmax*base[unit]) 67 68 68 69 def set_strength_limits(self, smin, smax): … … 80 81 and can be read in again. 81 82 """ 82 name = os.path.expand vars(name)83 name = os.path.expanduser(os.path.expandvars(name)) 83 84 if os.path.isfile(name) or os.path.isdir(name): 84 85 if not overwrite:
Note:
See TracChangeset
for help on using the changeset viewer.