Initial support for SBv3 and MockStage
This commit is contained in:
parent
068ce9e751
commit
ff534e6a51
10 changed files with 966 additions and 29 deletions
|
|
@ -131,11 +131,16 @@ class PluginMount(object):
|
|||
self.plugins = []
|
||||
print("Creating plugin mount")
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
return [m[0] for m in self.members]
|
||||
|
||||
@property
|
||||
def members(self):
|
||||
ignores = ['state', 'members', 'attach']
|
||||
plugin_array = []
|
||||
for obj_name in dir(self):
|
||||
if not obj_name == "plugins" and not obj_name[:2] == '__':
|
||||
if not obj_name in ignores and not obj_name[:2] == '__':
|
||||
obj = getattr(self, obj_name)
|
||||
if isinstance(obj, MicroscopePlugin):
|
||||
plugin_members = [member for member in inspect.getmembers(obj) if not member[0][:2] == '__']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue