-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SoftPositioner is not identified as device or signal using walk_components() #1095
Comments
For reference: |
Looking at Lines 215 to 218 in ac62511
returns Lines 220 to 223 in ac62511
Perhaps the test for |
In [130]: dir(sim4c.omega)
Out[130]:
['SUB_DONE',
'SUB_READBACK',
'SUB_START',
'_OphydObject__any_instantiated',
'_OphydObject__instantiation_callbacks',
'_OphydObject__register_instance',
'_SUB_REQ_DONE',
'__annotations__',
'__class__',
'__copy__',
'__delattr__',
'__dict__',
'__dir__',
'__doc__',
'__eq__',
'__format__',
'__ge__',
'__getattribute__',
'__getnewargs_ex__',
'__gt__',
'__hash__',
'__init__',
'__init_subclass__',
'__le__',
'__lt__',
'__module__',
'__ne__',
'__new__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'_args_cache',
'_attr_name',
'_callbacks',
'_cb_count',
'_cid_to_event_mapping',
'_default_sub',
'_done_moving',
'_egu',
'_kind',
'_limits',
'_mark_as_instantiated',
'_moving',
'_name',
'_ophyd_labels_',
'_parent',
'_position',
'_repr_info',
'_reset_sub',
'_run_subs',
'_set_position',
'_settle_time',
'_setup_move',
'_started_moving',
'_timeout',
'_unwrapped_callbacks',
'_validate_kind',
'add_instantiation_callback',
'attr_name',
'check_value',
'clear_sub',
'connected',
'control_layer_log',
'describe',
'describe_configuration',
'destroy',
'dotted_name',
'egu',
'event_types',
'high_limit',
'hints',
'kind',
'limits',
'log',
'low_limit',
'move',
'moving',
'name',
'parent',
'position',
'read',
'read_configuration',
'report',
'root',
'set',
'settle_time',
'source',
'stop',
'subscribe',
'subscriptions',
'timeout',
'unsubscribe',
'unsubscribe_all'] Does not look like a In [131]: sim4c.omega.read()
Out[131]: OrderedDict([('sim4c_omega', {'value': 0, 'timestamp': 1677266815.4288268})]) |
Perhaps, leave @property
def is_signal(self):
"Does this Component contain a Signal?"
return isinstance(self.cls, type) and not self.is_device |
While exploring a resolution to BCDA-APS/apstools#641, tested the proposed solution there to a diffractometer instance from hklpy, such as:
Using the
walk_components()
method, it is possible to print a small table showing if a Component is either a device or a signal:This table is printed:
Note that omega, chi, phi, and tth that both columns are
False
. It is expected that each of theseSoftPositioner
s would be identified asis_device=True
.The text was updated successfully, but these errors were encountered: