AssociationPool

class jwst.associations.AssociationPool(*args, **kwargs)[source]

Bases: Table

Association Pool - built off an astropy table.

An AssociationPool is essentially an astropy Table with the following default behaviors:

  • ASCII tables with a default delimiter of |

  • All values are read in as strings

Methods Summary

read(filename[, delimiter, fmt])

Read in a Pool file.

write(*args, **kwargs)

Write the pool to a file.

Methods Documentation

classmethod read(filename, delimiter='|', fmt='ascii', **kwargs)[source]

Read in a Pool file.

Parameters:
filenamestr

File path to read in as a table.

delimiterstr

Character used to delineate columns.

fmtstr

The format of the input file.

Returns:
AssociationPool

The AssociationPool representation of the file.

write(*args, **kwargs)[source]

Write the pool to a file.

Parameters:
*argsdict

Dictionary of arguments that astropy.io.ascii.write can accept.

**kwargsdict

Dictionary of keywords that astropy.io.ascii.write can accept.