Skip to content

Commit

Permalink
ICamera has no is_ready, so skip test
Browse files Browse the repository at this point in the history
  • Loading branch information
thusser committed Dec 29, 2023
1 parent 287b3a5 commit c7a3793
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions pyobs/robotic/scripts/darkbias.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,12 @@ async def can_run(self) -> bool:
True if script can run now.
"""

# get modules
# we need a camera
try:
camera = await self.comm.proxy(self._camera, IData)
await self.comm.proxy(self._camera, IData)
except ValueError:
return False

# we need a camera
if not await camera.is_ready():
return False

# seems alright
return True

Expand Down Expand Up @@ -95,10 +91,10 @@ async def run(

# image type for logger
if self._exptime == 0:
im_type = '%d biases' % self._count
im_type = "%d biases" % self._count

else:
im_type = '%d darks (%d s)' % (self._count, self._exptime)
im_type = "%d darks (%d s)" % (self._count, self._exptime)

log.info("Starting a series of %s with %s..." % (im_type, self._camera))
for i in range(self._count):
Expand All @@ -108,13 +104,3 @@ async def run(


__all__ = ["DarkBias"]










0 comments on commit c7a3793

Please sign in to comment.