Table_BDP — Tabular data base.

This module defines the Table_BDP class.

class admit.bdp.Table_BDP.Table_BDP(xmlFile=None, **keyval)[source]

Table Basic Data Product.

Table base class for use in BDP’s. BDP’s that contain tables should inherit from this class. In the instance where more than one table is needed then the class should instantiate instances of the Table class directly.

Parameters:

xmlFile : string

Output XML file name.

keyval : dictionary

Dictionary of keyword value pairs.

Attributes

table (Table) A Table class to hold the data.

Methods

baseDir([path]) Get/set project base directory.
delete([delfiles]) Method to delete the BDP.
get(key) Access an attribute.
getdir() Method to get the subdirectory(s) of the current BDP relative to the ADMIT working directory.
getfiles() Return the filename(s) associated with the basic data in a BDP.
haskey(key) Query if a key exists for an BDP.
isequal(bdp) Tests for equality with another BDP.
report() Report BDP properties in human readable format.
setkey([name, key]) Sets keyword value(s).
show() Show the xmlFile name.
update(new_state) Updates BDP state.
write([xmlFile]) Writes the BDP to an XML file.