Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: tablecomparer.details - Function Up: tablecomparer - Tool Previous: tablecomparer.tolerance - Function


tablecomparer.compare - Function



Package utility
Module table
Tool tablecomparer


Compare tables by running one or more tests


Synopsis
compare(checksubtables, checkcolnames, checkcolkeywordnames, checkcoldata, checktablekeywordnames)


Description
This function runs one or more check* tests on the table. If all tests pass, it returns T, it returns F otherwise.



Arguments

checksubtables   Check subtables as well?
    Allowed: Boolean
    Default: T
checkcolnames   Run the column names test?
    Allowed: Boolean
    Default: T
checkcolkeywordnames   Run the column keyword names test?
    Allowed: Boolean
    Default: T
checkcoldata   Run the column data test?
    Allowed: Boolean
    Default: T
checktablekeywordnames   Run the table keyword names test?
    Allowed: Boolean
    Default: T


Returns
T if all specified tests pass, F otherwise


Example
- tc := tablecomparer('test.table','fiducial.table', verbose=2)
- # run all available tests
- tc.compare();
<lots of messages>
T





next up previous contents index
Next: tablecomparer.details - Function Up: tablecomparer - Tool Previous: tablecomparer.tolerance - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15