GeminiDRSoftware / DRAGONS

Data Reduction for Astronomy from Gemini Observatory North and South
Other
27 stars 16 forks source link

stackFrames primitive sets incorrect filename if phu["ORIGNAME"] does not exists. #454

Open leejjoon opened 5 months ago

leejjoon commented 5 months ago

Here is a relevant code.

https://github.com/GeminiDRSoftware/DRAGONS/blob/32aee56638c5fdb0b7b41afa13ee3d06e3cc2a87/geminidr/core/primitives_stack.py#L400

I understand that ORIGNAME can be set by standardizeHeaders primitive. Still, I think it could be better to simply use 'orig_filename' property of adinputs[0], for example, instead of directly accessing the header.