fix: bugfix

This commit is contained in:
appel_c 2023-11-13 13:45:23 +01:00
parent 3e1a2b86c3
commit 7fefb44462

View File

@ -1,6 +1,7 @@
import enum
import os
from abc import ABC, abstractmethod
from typing import List
from ophyd import Device
from ophyd.device import Staged
@ -282,7 +283,7 @@ class SLSDetectorBase(ABC, Device):
"""
# Method idempotent, should rais ;obj;'RedudantStaging' if staged twice
if self._staged == Staged.yes:
if self._staged != Staged.no:
return super().stage()
else:
# Reset flag for detector stopped