Skip to content

Commit

Permalink
added empty add_custom_fits_headers
Browse files Browse the repository at this point in the history
  • Loading branch information
thusser committed Dec 7, 2023
1 parent a22efd4 commit dcc81ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pyobs/modules/camera/basecamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ async def __expose(self, exposure_time: float, image_type: ImageType, broadcast:
image.header["IMAGETYP"] = image_type.value

# add fits headers and format filename
await self.add_custom_fits_headers(image)
await self.add_requested_fits_headers(image, header_futures_before)
await self.add_requested_fits_headers(image, header_futures_after)
await self.add_fits_headers(image)
Expand Down Expand Up @@ -300,6 +301,14 @@ async def __expose(self, exposure_time: float, image_type: ImageType, broadcast:
log.info("Finished image %s.", filename)
return image, filename

async def add_custom_fits_headers(self, image: Image):
"""Add FITS headers in derived classes.
Args:
image: Image to write FITS headers to.
"""
pass

@timeout(calc_expose_timeout)
async def grab_data(self, broadcast: bool = True, **kwargs: Any) -> str:
"""Grabs an image ans returns reference.
Expand Down

0 comments on commit dcc81ce

Please sign in to comment.