Fix the error below from the main recipe, which is currently caught in a try/except statement (I think). This likely only happens on certain files (e.g., KP.20230715.45568.61.fits).
[KP.20230715.45568.61.log][ERROR]:Measuring guider diagnostics failed: 'KPF0' object has no attribute 'GUIDER_AVG'
Traceback (most recent call last):
File "/code/KPF-Pipeline/modules/quicklook/src/diagnostics_framework.py", line 90, in _perform
self.kpf_object = diagnostics.add_headers_guider(self.kpf_object, logger=self.logger)
File "/code/KPF-Pipeline/modules/quicklook/src/diagnostics.py", line 150, in add_headers_guider
data_products = get_data_products_2D(D2)
File "/code/KPF-Pipeline/modules/Utils/kpf_parse.py", line 307, in get_data_products_2D
if (D2['guider_avg'].size > 1):
File "/code/KPF-Pipeline/kpfpipe/models/base_model.py", line 150, in __getitem__
return getattr(self, key.upper())
AttributeError: 'KPF0' object has no attribute 'GUIDER_AVG'
[KP.20230715.45568.61.log][INFO]:Measuring diagnostics: add_headers_exposure_meter
[KP.20230715.45568.61.log][ERROR]:Measuring exposure meter diagnostics failed: 'KPF0' object has no attribute 'GUIDER_AVG'
Traceback (most recent call last):
File "/code/KPF-Pipeline/modules/quicklook/src/diagnostics_framework.py", line 100, in _perform
self.kpf_object = diagnostics.add_headers_exposure_meter(self.kpf_object, logger=self.logger)
File "/code/KPF-Pipeline/modules/quicklook/src/diagnostics.py", line 235, in add_headers_exposure_meter
data_products = get_data_products_2D(D2)
File "/code/KPF-Pipeline/modules/Utils/kpf_parse.py", line 307, in get_data_products_2D
if (D2['guider_avg'].size > 1):
File "/code/KPF-Pipeline/kpfpipe/models/base_model.py", line 150, in __getitem__
return getattr(self, key.upper())
AttributeError: 'KPF0' object has no attribute 'GUIDER_AVG'
Fix the error below from the main recipe, which is currently caught in a try/except statement (I think). This likely only happens on certain files (e.g., KP.20230715.45568.61.fits).