Closed stscijgbot-jp closed 1 month ago
I would say this is a bug. It's caused by:
https://github.com/spacetelescope/jwst/blob/c2d87f7a2c8c4e383b0b4c961d802205ca0b280f/jwst/model_blender/blendrules.py#L128
which incorrectly handles the float/int/time conversion introducing floating point errors. The conversions are unnecessary as the input time strings have matching lexical and chronological sorting and can be blended without converting them to times. This would allow removal of the _isotime
function and the error.
Comment by Melanie Clarke on JIRA:
Fixed by #8759
Issue JP-3732 was created on JIRA by Brett Graham:
When "blending" metadata to produce outputs for some steps (like resample, calwebb_coron3 and cube build) the observation time (TIME-OBS) are combined in a way that can produce an incorrect result. Here is a minimal example: