Table Of Contents

Previous topic

Full API for Table class

This Page

Full API for TableSet class

TableSet initialization and I/O

TableSet.reset()

Empty the table set

TableSet.read(*args, **kwargs)

Read in a table set from a file/database.

Optional Keyword Arguments (independent of table type):

verbose: [ True | False ]
Whether to print out warnings when reading (default is True)
type: [ string ]
The read method attempts to automatically guess the file/database format based on the arguments supplied. The type can be overridden by setting this argument.
TableSet.write(*args, **kwargs)

Write out a table set to a file/database.

Optional Keyword Arguments (independent of table type):

verbose: [ True | False ]
Whether to print out warnings when writing (default is True)
type: [ string ]
The read method attempts to automatically guess the file/database format based on the arguments supplied. The type can be overridden by setting this argument.

Meta-data

TableSet.add_comment(comment)

Add a comment to the table set

Required Argument:

comment: [ string ]
The comment to add to the table
TableSet.add_keyword(key, value)

Add a keyword/value pair to the table set

Required Arguments:

key: [ string ]
The name of the keyword
value: [ string | float | integer | bool ]
The value of the keyword
TableSet.describe()

Describe all the tables in the set

TableSet manipulation and I/O

TableSet.append(table)

Append a table to the table set

Required Arguments:

table: [ a table instance ]
This can be a table of any type, which will be converted to a table of the same type as the parent set (e.g. adding a single VOTable to a FITSTableSet will convert the VOTable to a FITSTable inside the set)