Changeset 1239 for tags


Ignore:
Timestamp:
09/05/06 19:44:31 (18 years ago)
Author:
mar637
Message:

Ticket #72 - fixed reset. Ticket #70 - added file not found error to contructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/Release2.1.0b/python/linecatalog.py

    r1156 r1239  
    2525    def __init__(self, name):
    2626        fpath = os.path.abspath(os.path.expandvars(os.path.expanduser(name)))
    27         lcbase.__init__(self, fpath)
     27        if os.path.exists(fpath):
     28            lcbase.__init__(self, fpath)
     29        else:
     30            msg = "File '%s' not found" % fpath
     31            if rcParams['verbose']:
     32                print msg
     33                return
     34            else:
     35                raise IOError(msg)
    2836
    2937    def summary(self):
     
    96104        Reset the table to its initial state, i.e. undo all calls to set_
    97105        """
    98         lcbase.reset()
     106        lcbase.reset(self)
    99107
    100108    def get_row(self, row=0):
Note: See TracChangeset for help on using the changeset viewer.