threeML.utils.photometry.photometric_observation module
- class threeML.utils.photometry.photometric_observation.PhotometericObservation(band_names: List[str], ab_magnitudes: Iterable[float], ab_magnitude_errors: Iterable[float])[source]
Bases:
object
- classmethod from_dict(data: dict) PhotometericObservation [source]
Create an observation from a dict in the form data = dict(a=(mag, mag_err), b=(mag, mag_err))
- classmethod from_hdf5(file_name: str) PhotometericObservation [source]
Load an observation from an hdf5 file
- classmethod from_kwargs(**kwargs: dict) PhotometericObservation [source]
Create an observation from a kwargs in the form (a=(mag, mag_err), b=(mag, mag_err))