# Path: sncosmo/photdata.py
# PHOTDATA_ALIASES = OrderedDict([
#     ('time', {'time', 'date', 'jd', 'mjd', 'mjdobs', 'mjd_obs'}),
#     ('band', {'band', 'bandpass', 'filter', 'flt'}),
#     ('flux', {'flux', 'f'}),
#     ('fluxerr', {'fluxerr', 'fe', 'fluxerror', 'flux_error', 'flux_err'}),
#     ('zp', {'zp', 'zpt', 'zeropoint', 'zero_point', 'zeropt'}),
#     ('zpsys', {'zpsys', 'zpmagsys', 'magsys'}),
#     ('fluxcov', {'cov', 'covar', 'covariance', 'covmat', 'fluxcov'})
#     ])


from sncosmo.photdata import PHOTDATA_ALIASES
# Descriptions for docstring only.
_photdata_descriptions = {
    'time': 'Time of observation in days',
    'band': 'Bandpass of observation',
    'flux': 'Flux of observation',
    'fluxerr': 'Gaussian uncertainty on flux',
    'zp': 'Zeropoint corresponding to flux',
    'zpsys': 'Magnitude system for zeropoint',
    'fluxcov': 'Covariance between observations (array; optional)'
    }

_photdata_types = {
    'time': 'float',
    'band': 'str',
    'flux': 'float',
    'fluxerr': 'float',
    'zp': 'float',
    'zpsys': 'str',
    'fluxcov': 'ndarray'
    }

lines = [
    '',
    '  '.join([10 * '=', 60 * '=', 50 * '=', 50 * '=']),
    '{0:10}  {1:60}  {2:50}  {3:50}'
    .format('Column', 'Acceptable aliases (case-independent)',
            'Description', 'Type')
    ]
lines.append(lines[1])
for colname in PHOTDATA_ALIASES:

# Path: sncosmo/photdata.py
# PHOTDATA_ALIASES = OrderedDict([
#     ('time', {'time', 'date', 'jd', 'mjd', 'mjdobs', 'mjd_obs'}),
#     ('band', {'band', 'bandpass', 'filter', 'flt'}),
#     ('flux', {'flux', 'f'}),
#     ('fluxerr', {'fluxerr', 'fe', 'fluxerror', 'flux_error', 'flux_err'}),
#     ('zp', {'zp', 'zpt', 'zeropoint', 'zero_point', 'zeropt'}),
#     ('zpsys', {'zpsys', 'zpmagsys', 'magsys'}),
#     ('fluxcov', {'cov', 'covar', 'covariance', 'covmat', 'fluxcov'})
#     ])


# Path: docs/_helpers/photdata_aliases_table.py
from sncosmo.photdata import PHOTDATA_ALIASES

# Descriptions for docstring only.
_photdata_descriptions = {
    'time': 'Time of observation in days',
    'band': 'Bandpass of observation',
    'flux': 'Flux of observation',
    'fluxerr': 'Gaussian uncertainty on flux',
    'zp': 'Zeropoint corresponding to flux',
    'zpsys': 'Magnitude system for zeropoint',
    'fluxcov': 'Covariance between observations (array; optional)'
    }

_photdata_types = {
    'time': 'float',
    'band': 'str',
    'flux': 'float',
    'fluxerr': 'float',
    'zp': 'float',
    'zpsys': 'str',
    'fluxcov': 'ndarray'
    }

lines = [
    '',
    '  '.join([10 * '=', 60 * '=', 50 * '=', 50 * '=']),
    '{0:10}  {1:60}  {2:50}  {3:50}'
    .format('Column', 'Acceptable aliases (case-independent)',
            'Description', 'Type')
    ]
lines.append(lines[1])
for colname in PHOTDATA_ALIASES:

    alias_list = ', '.join([repr(a) for a in PHOTDATA_ALIASES[colname]])