diff --git a/pyobs/robotic/scripts/darkbias.py b/pyobs/robotic/scripts/darkbias.py index 7b5450e3..cdb386f8 100644 --- a/pyobs/robotic/scripts/darkbias.py +++ b/pyobs/robotic/scripts/darkbias.py @@ -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 @@ -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): @@ -108,13 +104,3 @@ async def run( __all__ = ["DarkBias"] - - - - - - - - - -