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
-
getFluxerr
(num)[source]¶ returns the error on the flux of an observation from the number of counts (not used in the analysis)
-