spextra.containers module#

Contains database file class and container classes derived from it.

class spextra.containers.ExtCurveContainer(name: str)#

Bases: DBFile

Container for extinction curve file.

Attributes:
curve_comment

Deprecated feature.

curve_name

Name of the extinction curve.

datafile

Name and extension of the file.

description

Description or comment of the file as defined in the library.

filename

Deprecated feature.

is_in_library

Return True if file is part of the parent library.

library
name

Deprecated feature.

path

Path to the cached file.

Methods

remove()

Remove the file.

property curve_comment#

Deprecated feature.

property curve_name: str#

Name of the extinction curve.

class spextra.containers.FilterContainer(name: str)#

Bases: DBFile

Container for a filter curve file.

Attributes:
datafile

Name and extension of the file.

description

Description or comment of the file as defined in the library.

filename

Deprecated feature.

filter_comment

Deprecated feature.

filter_name

Name of the filter.

is_in_library

Return True if file is part of the parent library.

library
name

Deprecated feature.

path

Path to the cached file.

Methods

remove()

Remove the file.

property filter_comment#

Deprecated feature.

property filter_name: str#

Name of the filter.

class spextra.containers.SpectrumContainer(name: str)#

Bases: DBFile

Container for a spectral template file.

Attributes:
datafile

Name and extension of the file.

description

Description or comment of the file as defined in the library.

filename

Deprecated feature.

is_in_library

Return True if file is part of the parent library.

library
name

Deprecated feature.

path

Path to the cached file.

template

Name of the spectrum template.

template_comment

Deprecated feature.

template_name

Deprecated feature.

Methods

remove()

Remove the file.

property template: str#

Name of the spectrum template.

property template_comment#

Deprecated feature.

property template_name#

Deprecated feature.