close and closable
currently there is a double definition of close:
- its used e.g. in resetup to 'close' python objects (using bliss/common/utils.py:closable)
closable(obj):
"""Return True if the given object is closable, False otherwise."""
return (
hasattr(obj, "close")
and inspect.ismethod(obj.close)
and obj.close.__self__ is not None
)
- shutter objects have a function close() to close the shutter (hardware)
for this reason resetup in its current implementation will not work with shutter objects.