-
Type:
Task
-
Status: Won't Fix (View Workflow)
-
Priority:
Normal
-
Resolution: Won't Fix
-
Component/s: drp_1dpipe
-
Labels:None
When we use outputs from a recent pipe2d, drp_1dpipe fails, emitting this error:
INFO :: Failed to init pfsCoZCandidate : 'VERSION_DATAMODEL'
It seems to be a KeyError raised from pre_process.py:init_output():
damd_version = spectra[source].metadata["VERSION_DATAMODEL"] stella_version = spectra[source].metadata["VERSION_DRP_STELLA"] bs_pfs_version = spectra[source].metadata["VERSION_OBS_PFS"]
After this commit, long key names in metadata dictionary must be prefixed by "HIERARCH ":
https://github.com/Subaru-PFS/drp_stella/commit/0eb9ed9b75cd3e02f59daf144ec3f426f7c57422
In fact, the following changes suffice to make drp_1dpipe work again, as reported by Takahiro Morishima :
metadata['VERSION_DATAMODEL'] => metadata['HIERARCH VERSION_DATAMODEL'] metadata['VERSION_DRP_STELLA'] => metadata['HIERARCH VERSION_DRP_STELLA'] metadata['VERSION_OBS_PFS'] => metadata['HIERARCH VERSION_OBS_PFS']