Changeset 5053


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

Added more data formats to ignore and more documentation

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

Legend:

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

    r5052 r5053  
    11"""Track IP of data files in an entire directory tree.
    22See docstring for the public function IP_verified()
    3 for details.
     3for details on algorithm.
     4
     5An example of the XML format expected by this module is
     6
     7
     8<?xml version="1.0" encoding="iso-8859-1"?>
     9
     10<ga_license_file>
     11  <metadata>
     12    <author>Ole Nielsen</author>
     13  </metadata>
     14 
     15  <datafile>
     16    <filename>channel1.png</filename>
     17    <checksum>1339122967</checksum>
     18    <publishable>Yes</publishable>
     19    <accountable>Ole Nielsen</accountable>
     20    <source>Generated by ANUGA development team</source>
     21    <IP_owner>Geoscience Australia</IP_owner>
     22    <IP_info>For use with ANUGA manual</IP_info>   
     23  </datafile>
     24
     25</ga_license_file>
     26
     27
     28There can be more than one <datafile> element to cover files
     29with different extensions.
     30
     31
     32Here's a DTD format, we might implement one day
     33
     34   <!DOCTYPE ga_license_file [
     35      <!ELEMENT ga_license_file (source, datafile+)>
     36      <!ELEMENT metadata (author, svn_keywords)>
     37      <!ELEMENT svn_keywords (author, date, revision, url, id)>   
     38      <!ELEMENT datafile (filename, publishable, accountable,
     39                        owner, location, IP_info)>   
     40      <!ELEMENT filename (#PCDATA)>
     41      <!ELEMENT publishable (#PCDATA)>   
     42      <!ELEMENT accountable (#PCDATA)>       
     43      <!ELEMENT source (#PCDATA)>                               
     44      <!ELEMENT IP_owner (#PCDATA)>           
     45      <!ELEMENT IP_info (#PCDATA)>               
     46  ]>
     47
     48
     49
    450"""
    551
  • anuga_core/source/anuga/utilities/data_audit_wrapper.py

    r5052 r5053  
    1414
    1515# Ignore source code files
    16 extensions_to_ignore = ['.py','.c', '.h', '.cpp', '.f', '.bat']
     16extensions_to_ignore = ['.py','.c', '.h', '.cpp', '.f', '.bat', '.m']
    1717
    1818# Ignore LaTeX documents
Note: See TracChangeset for help on using the changeset viewer.