Skip to content

Commit

Permalink
* Debugging the image calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed May 6, 2024
1 parent a777d8f commit 49cde0d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/panoptes/pocs/camera/gphoto/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,12 @@ def load_properties(self) -> dict:

def _poll_exposure(self, readout_args, exposure_time, timeout=None, interval=0.01):
self.logger.info('Calling get_command_result from base gphoto2')
self.get_command_result(timeout)
# Wait for and clear the _command_proc.
outs = self.get_command_result(timeout)
self.logger.info(f'Camera response: {outs}')
self.logger.info(f'Clearing exposing event for {self}')
self._is_exposing_event.clear()

super()._poll_exposure(readout_args, exposure_time, timeout=timeout, interval=interval)

def _readout(self, filename, headers, *args, **kwargs):
Expand Down Expand Up @@ -282,7 +287,7 @@ def start_tether(cls, port, filename_pattern: str = '%Y%m%dT%H%M%S.%C'):
full_command,
stderr=subprocess.STDOUT,
stdout=subprocess.PIPE
)
)
print(f'gphoto2 tether started on {port=} on {process.pid=}')

try:
Expand All @@ -296,7 +301,7 @@ def gphoto_file_download(
port: str,
filename_pattern: str,
only_new: bool = True
):
):
"""Downloads (newer) files from the camera on the given port using the filename pattern."""
print(f'Starting gphoto2 download for {port=} using {filename_pattern=}')
command = [get_gphoto2_cmd(),
Expand Down

0 comments on commit 49cde0d

Please sign in to comment.