Changeset 5052


Ignore:
Timestamp:
Feb 19, 2008, 1:44:26 PM (17 years ago)
Author:
ole
Message:

Nicer output of data_audit.

Location:
anuga_core/source/anuga/utilities
Files:
2 edited

Legend:

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

    r5040 r5052  
    6464    all_files = 0
    6565    ok_files = 0
    66     first_time = True
     66    files_found_in_dir = True
    6767    all_files_accounted_for = True
    6868    for dirpath, filename in identify_datafiles(directory,
     
    7575            dir_change = True
    7676            oldpath = dirpath
     77            files_found_in_dir = False # Reset for this dir
    7778        else:
    7879            dir_change = False
     
    118119
    119120
    120 
    121        # Only print status if there is a problem (no news is good news)
    122         if dir_change is True:
     121        # Decide if dir header needs to be printed           
     122        if status != 'OK':
     123            files_found_in_dir = True
     124           
     125                   
     126        # Only print status if there is a problem (no news is good news)
     127        if dir_change is True and files_found_in_dir is True:
    123128            print
    124129            print '------------------------------------'
  • anuga_core/source/anuga/utilities/data_audit_wrapper.py

    r5040 r5052  
    1717
    1818# Ignore LaTeX documents
    19 extensions_to_ignore += ['.tex', '.sty', '.cls', '.bib']
     19extensions_to_ignore += ['.tex', '.sty', '.cls', '.bib', '.def']
    2020
    2121# Ignore pdf and doc documents
     
    2525extensions_to_ignore += ['.pyc', '.o', '.so', '~']
    2626extensions_to_ignore += ['.aux', '.log', '.idx', 'ilg', '.ind',
    27                          '.bbl', '.blg']
     27                         '.bbl', '.blg', '.syn', '.toc']
    2828
    2929# Ignore license files themselves
Note: See TracChangeset for help on using the changeset viewer.