As discussed on #124, I introduce a features method on ChimeraObject to check if the object is an instance of another object. That way, one can check if an instrument supports a part of the interface or not by doing, for example:
from chimera.core.manager import Manager
from chimera.interfaces.dome import DomeFlap, DomeLights
m = Manager()
dome = m.getProxy('127.0.0.1:7666/Dome/0')
print 'Flap', dome.features(DomeFlap)
print 'Lights', dome.features(DomeLights)
As discussed on #124, I introduce a
features
method onChimeraObject
to check if the object is an instance of another object. That way, one can check if an instrument supports a part of the interface or not by doing, for example: