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__() Calling the object will show info
enumobs()
getErrors(num, filters)
getFilters()
getFlux(num) returns the flux of an observation from the number of counts
getFluxerr(num) returns the error on the flux of an observation from the number of counts (not used in the analysis)
getMags(num, filters)
getObs([num]) returns the flux
getObsWithUncertainties([num]) returns the flux and uncertainties and the mask of bad values
info() Prints some information about the catalog
iterobs() yield getObs
keys() Returns dataset content names
readData() read the dataset from the original source file
setBadValue(val)
setDescription(txt)
setFilters(filters)

Attributes Documentation

nObs

Methods Documentation

__call__()[source]

Calling the object will show info

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

returns the flux of an observation from the number of counts

getFluxerr(num)[source]

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

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

returns the flux

getObsWithUncertainties(num=0)[source]

returns the flux and uncertainties and the mask of bad values

info()[source]

Prints some information about the catalog

iterobs()[source]

yield getObs

keys()[source]

Returns dataset content names

readData()[source]

read the dataset from the original source file

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