Skip to content

Commit

Permalink
abc: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ianohara committed Feb 25, 2025
1 parent 3533862 commit 8c49a0c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions software/squid/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,12 @@ def read_camera_frame(self) -> CameraFrame:
frame = self._get_frame()

return CameraFrame(
frame_id = self.get_frame_id(),
frame_id=self.get_frame_id(),
timestamp=time.time(),
frame=frame,
frame_format=self.get_frame_format(),
frame_pixel_format=self.get_pixel_format())
frame_pixel_format=self.get_pixel_format(),
)

@abc.abstractmethod
def _get_frame(self):
Expand Down Expand Up @@ -590,7 +591,7 @@ def get_acquisition_mode(self) -> CameraAcquisitionMode:
pass

@abc.abstractmethod
def send_trigger(self, illumination_time: Optional[float]=None):
def send_trigger(self, illumination_time: Optional[float] = None):
"""
If in an acquisition mode that needs triggering, send a trigger. If in HARDWARE_TRIGGER mode, you are
guaranteed to have a self._hw_trigger_fn and should call that. If in CONTINUOUS mode, this can be
Expand Down

0 comments on commit 8c49a0c

Please sign in to comment.