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:
  • filename (str) – File path to read in as a table.

  • delimiter (str) – Character used to delineate columns.

  • fmt (str) – The format of the input file.

Returns:

The AssociationPool representation of the file.

Return type:

AssociationPool

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

Write the pool to a file.

Parameters:
  • *args (dict) – Dictionary of arguments that astropy.io.ascii.write can accept.

  • **kwargs (dict) – Dictionary of keywords that astropy.io.ascii.write can accept.