You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
default_title=re.sub(r'_', ' ', field_name.name).capitalize()
# Use custom column heading/title, if available.title=field_name.properties.get('title', default_title)
...
In some cases, e.g., the repeat_duration_s step field in the microdrop.droplet_planning_plugin, this leads to a somewhat awkward "human-readable" translation of "Repeat duration s".
However, since these names are used as dictionary keys for the associated properties, any string format will work; i.e., snake case is not necessary.
Proposed solution
To maintain backwards compatibility, the following approach is recommended:
Modify pygtkhelpers.ui.objectlist.CombinedFields to stop inferring title (just use name as is unless title property is specified)
Amend existing plugin fields with "undesirable" titles to add a title property to explicitly set the displayed title, while supporting existing protocols.
For new plugins/fields use the human-readable string as the field name itself
Prior to this commit, if an error occurred during an electrode controller
actuation, an error dialog was displayed. However, in some cases a user
may want to continue even if an error occurs, e.g., if a DropBot is not
connected.
In this commit, update MicroDrop to 2.28.2, which displays a warning
dialog if an error occurs during an electrode controller actuation, where
the user has the option of ignoring the error. Also, update plugins to
fix human-readable column titles in the protocol grid (see
sci-bots/microdrop#259).
Most step/app field names are in snake_case, i.e., "lower_case_with_underscores". The
pygtkhelpers.ui.objectlist.CombinedFields
__init__
method assumes a snake case field name and infers a human-readable column title:In some cases, e.g., the
repeat_duration_s
step field in themicrodrop.droplet_planning_plugin
, this leads to a somewhat awkward "human-readable" translation of "Repeat duration s".However, since these names are used as dictionary keys for the associated properties, any string format will work; i.e., snake case is not necessary.
Proposed solution
To maintain backwards compatibility, the following approach is recommended:
pygtkhelpers.ui.objectlist.CombinedFields
to stop inferring title (just use name as is unlesstitle
property is specified)pygtkhelpers
release as feat(microdrop/protocol-grid-controller): add optional tooltips to column headers #260title
property to explicitly set the displayed title, while supporting existing protocols.See also
The text was updated successfully, but these errors were encountered: