Skip to content

Commit

Permalink
Calibration frames are now associated with output data products rathe…
Browse files Browse the repository at this point in the history
…r than frames
  • Loading branch information
cmccully committed Apr 15, 2024
1 parent 4eeeffd commit ba26ce1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.16.0 (2023-04-18)
-------------------
- Calibration frames are now associated with output data products rather than frames
so that we have more than one calibration data product produced per frame.

1.15.2 (2023-04-12)
-------------------
- Fix to fpacking data when the image data array is None
Expand Down
4 changes: 2 additions & 2 deletions banzai/lco.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def write(self, runtime_context):
if runtime_context.post_to_archive:
archived_image_info = file_utils.post_to_ingester(data_product.file_buffer, self,
data_product.filename, meta=data_product.meta)
self.frame_id = archived_image_info.get('frameid')
data_product.frame_id = archived_image_info.get('frameid')

if not runtime_context.no_file_cache:
os.makedirs(self.get_output_directory(runtime_context), exist_ok=True)
Expand Down Expand Up @@ -170,7 +170,7 @@ def to_db_record(self, output_product):
'instrument_id': self.instrument.id,
'is_master': self.is_master,
'is_bad': self.is_bad,
'frameid': self.frame_id,
'frameid': output_product.frame_id,
'attributes': {}}
for attribute in self.grouping_criteria:
record_attributes['attributes'][attribute] = str(getattr(self, attribute))
Expand Down

0 comments on commit ba26ce1

Please sign in to comment.