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

Deprecated since version 0.44.0.

description

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

filename

Name and extension of the file.

is_in_library

Return True if file is part of the parent library.

library
path

Path to the cached file.

Methods

remove()

Remove the file.

property curve_comment#

Deprecated feature.

Deprecated since version 0.44.0: Please use the identical .description instead!

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

Deprecated since version 0.44.0.

description

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

filename

Name and extension of the file.

filter_comment

Deprecated feature.

filter_name

Name of the filter.

is_in_library

Return True if file is part of the parent library.

library
path

Path to the cached file.

Methods

remove()

Remove the file.

property filter_comment#

Deprecated feature.

Deprecated since version 0.44.0: Please use the identical .description instead!

property filter_name: str#

Name of the filter.

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

Bases: DBFile

Container for a spectral template file.

Attributes:
datafile

Deprecated since version 0.44.0.

description

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

filename

Name and extension of the file.

is_in_library

Return True if file is part of the parent library.

library
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.

Deprecated since version 0.44.0: Please use the identical .description instead!

property template_name#

Deprecated feature.

Deprecated since version 0.44.0: Please use the identical .basename instead!