EazyParam

class eazy.param.EazyParam(PARAM_FILE=None, verbose=True)[source]

Bases: object

Read an Eazy zphot.param file.

Example:

>>> if os.path.exists('zphot.param'):
...     params = EazyParam(PARAM_FILE='zphot.param')
...     print(params['Z_STEP'])

Defaults are in eazy/data/zphot.param.default

Parameters:
param_filestr

Name of parameter file. If None, then will get data/zphot.param.default from within the module.

Attributes:
paramscollections.OrderedDict

Parameter dictionary. Don’t modify this directly but rather use __getitem__ and __setitem__ methods.

param_names

Keywords of the params dictionary

formatslist

List indicating if parameters are interpreted as string (‘s’) or scalar (‘f’) values.

Attributes Summary

kwargs

Dictionary with lower-case parameter names for passing as **kwargs

param_names

Keywords of the params dictionary

to_mJy

Return catalog conversion factor to mJy based on PRIOR_ABZP.

Methods Summary

verify_params()

Some checks on the parameters

write([file])

Write to an ascii file

Attributes Documentation

kwargs

Dictionary with lower-case parameter names for passing as **kwargs

param_names

Keywords of the params dictionary

to_mJy

Return catalog conversion factor to mJy based on PRIOR_ABZP.

Methods Documentation

verify_params()[source]

Some checks on the parameters

write(file=None)[source]

Write to an ascii file