Changeset 7125


Ignore:
Timestamp:
May 28, 2009, 3:40:04 PM (15 years ago)
Author:
rwilson
Message:

Add another sanity check: is list of input files empty?

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/csv_tools.py

    r7108 r7125  
    6767        return result
    6868
    69     # get number of input files
     69    # get number of input files, check we have 1 or more
    7070    num_files = len(file_title_list)
     71    if num_files == 0:
     72        msg = "List 'file_title_list' is empty!?"
     73        raise Exception, msg
    7174
    7275    # read data from all files
  • branches/numpy/anuga/utilities/csv_tools.py

    r7109 r7125  
    6767        return result
    6868
    69     # get number of input files
     69    # get number of input files, check we have 1 or more
    7070    num_files = len(file_title_list)
     71    if num_files == 0:
     72        msg = "List 'file_title_list' is empty!?"
     73        raise Exception, msg
    7174
    7275    # read data from all files
Note: See TracChangeset for help on using the changeset viewer.