Changeset 5027
- Timestamp:
- Feb 12, 2008, 5:13:59 PM (17 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/data_audit.py
r5022 r5027 62 62 63 63 # Identify data files 64 all_files = 0 65 ok_files = 0 64 66 first_time = True 65 67 all_files_accounted_for = True … … 68 70 directories_to_ignore, 69 71 files_to_ignore): 72 73 all_files += 1 70 74 71 75 filename = join(dirpath, datafile) … … 98 102 99 103 fid.close() 100 101 if status != 'OK' or verbose is True: 104 105 if status == 'OK': 106 ok_files += 1 107 else: 108 # Only print status if there is a problem (no news is good news) 102 109 if first_time is True: 103 110 # Print header … … 110 117 %str(compute_checksum(filename)), status 111 118 119 120 if verbose is True: 121 print 122 print 'Audit result for %s:' %dirpath 123 print 'Number of files in audited: %d' %(all_files) 124 print 'Number of files in verified: %d' %(ok_files) 112 125 113 126 -
anuga_core/source/anuga/utilities/data_audit_wrapper.py
r5018 r5027 14 14 15 15 # Ignore source code files 16 extensions_to_ignore = ['.py','.c','.h', '.f', '.bat'] 16 extensions_to_ignore = ['.py','.c', '.h', '.cpp', '.f', '.bat'] 17 18 # Ignore LaTeX documents 19 extensions_to_ignore += ['.tex', '.sty', '.cls', '.bib'] 20 21 # Ignore pdf and doc documents 22 extensions_to_ignore += ['.pdf', '.doc'] 17 23 18 24 # Ignore generated stuff -
audit_all_data.py
r5024 r5027 1 1 from anuga.utilities.data_audit_wrapper import IP_verified 2 from os.path import join 2 3 3 4 4 #if not IP_verified('anuga_core', verbose=True): 5 # print 'Not all files have been verified.' 6 7 if not IP_verified('anuga_validation/okushiri_2005', verbose=False): 8 print 'Not all files have been verified.' 5 # Roughly the same as what is being released 6 dirs_to_distribute = [join('anuga_core', 'source', 'anuga'), 7 'anuga_validation', 8 join('anuga_core', 'documentation', 'user_manual')] 9 9 10 10 11 for dir in dirs_to_distribute: 12 if not IP_verified(dir, verbose=True): 13 print 'Not all files in %s have been verified.' %dir 14 15 16
Note: See TracChangeset
for help on using the changeset viewer.