CompTable

class stsynphot.tables.CompTable(compfile, ext=1)[source]

Bases: object

Class to handle component table (optical or thermal).

Table is parsed with read_comptable(). Only component names and filenames are kept. Component throughput filenames are parsed with irafconvert().

Parameters:
compfilestr

Component table filename.

extint, optional

FITS extension index of the data table.

Attributes:
namestr

Component table filename.

compnames, filenamesarray of str

Component names and corresponding filenames.

Methods Summary

get_filenames(compnames)

Get filenames of given component names.

Methods Documentation

get_filenames(compnames)[source]

Get filenames of given component names.

For multiple matches, only the first match is kept.

Parameters:
compnameslist of str

List of component names to search. Case-sensitive.

Returns:
fileslist of str

List of matched filenames.

Raises:
stsynphot.exceptions.GraphtabError

Unmatched component name.