LSSTDESC / rail_astro_tools

Rail utility stages that depend on astronomy package such as healpy, astropy etc...
MIT License
0 stars 0 forks source link

`renameDict` cannot be accessed by ObsCondition #13

Closed hangqianjun closed 1 year ago

hangqianjun commented 1 year ago

renameDict is meant to be a shared parameter between photErr and ObsCondition. The problem is ObsCondition checks whether the input is in photErr via

from photerr import LsstErrorParams
from dataclasses import fields
lsst_error_model_keys = [field.name for field in fields(LsstErrorParams)]

but renameDict is not in lsst_error_model_keys.

Solution: add renameDict in lsst_error_model_keys after calling the above lines.

hangqianjun commented 1 year ago

Will be included in #16