Changeset 5550


Ignore:
Timestamp:
Jul 22, 2008, 1:38:03 PM (16 years ago)
Author:
ole
Message:

Better reading of ordering file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r5546 r5550  
    50405040    # Establish permutation array
    50415041    if ordering_filename is not None:
    5042    
     5042
     5043        if verbose is True:
     5044            print 'Reading ordering file', ordering_filename
    50435045        # Read ordering file
    50445046        try:
     
    50545056        reference_header_split = reference_header.split(',')
    50555057        for i in range(3):
    5056             if not file_header[i] == reference_header_split[i]:
    5057                 msg = 'File must contain header: '+reference_header+'\n'
     5058            if not file_header[i].strip() == reference_header_split[i].strip():
     5059                msg = 'File must contain header: '+reference_header
    50585060                raise Exception, msg
    50595061
Note: See TracChangeset for help on using the changeset viewer.