Observations

class beast.observationmodel.observations.Observations(inputFile, desc=None)[source]

Bases: object

A generic class that interfaces observation catalog in a standardized way

Attributes:
inputFile: str

catalog source file

filters: sequence(str)

list of filter names (internal standards)

desc: str, optional

description of the observations

badvalue: float, optional

value that tags a bad measurement that should not be used in the fitting.

nObs: int

number of observations in the catalog

Generate a data interface object

Attributes Summary

nObs

Methods Summary

__call__(self) Calling the object will show info
enumobs(self)
getErrors(self, num, filters)
getFilters(self)
getFlux(self, num) returns the flux of an observation from the number of counts
getFluxerr(self, num) returns the error on the flux of an observation from the number of counts (not used in the analysis)
getMags(self, num, filters)
getObs(self[, num]) returns the flux
info(self) Prints some information about the catalog
iterobs(self) yield getObs
keys(self) Returns dataset content names
readData(self) read the dataset from the original source file
setBadValue(self, val)
setDescription(self, txt)
setFilters(self, filters)

Attributes Documentation

nObs

Methods Documentation

__call__(self)[source]

Calling the object will show info

enumobs(self)[source]
getErrors(self, num, filters)[source]
getFilters(self)[source]
getFlux(self, num)[source]

returns the flux of an observation from the number of counts

getFluxerr(self, num)[source]

returns the error on the flux of an observation from the number of counts (not used in the analysis)

getMags(self, num, filters)[source]
getObs(self, num=0)[source]

returns the flux

info(self)[source]

Prints some information about the catalog

iterobs(self)[source]

yield getObs

keys(self)[source]

Returns dataset content names

readData(self)[source]

read the dataset from the original source file

setBadValue(self, val)[source]
setDescription(self, txt)[source]
setFilters(self, filters)[source]