Releases: pcdshub/typhos
v4.3.0
v4.2.1
v4.2.0 (2025-04-07)
Features
- Add
long_namesupport fordevice.signalordevice.component.signalthat replacelabel_textfor rows inSignalPanel - Allows custom displays with "add_device" methods to hook typhos correctly
Bugfixes
- Clean up signal plugin with channel.disconnect(destroying=True), since channels are being deleted on test cleanup
Contributors
Full Changelog: v4.1.0...v4.2.0
v4.1.0 (2024-12-19)
Bugfixes
- Fix an issue where detailed tree screens would automatically load without
scrollbars. Now, the "auto" scrollbar setting is based primarily on the
apparent display type of the screen, not of the originally requested
display type, which may not be used if no such template exists. - Fix an issue where dynamic font scaling applied to a combobox
with no entries would raise an exception and close typhos. - Fix an issue where long status messages from positioner widget moves
would fail to display in certain circumstances.
Contributors
- zllentz
Full Changelog: v4.0.0...v4.1.0
v4.0.0 (2024-08-20)
API Breaks
TyphosStatusThreadnow has a dramatically different signal API.
This is an improved version but if you were using this class take note
of the changes. Key member signals are:TyphosStatusThread.status_startedTyphosStatusThread.status_timeoutTyphosStatusThread.status_finishedTyphosStatusThread.error_messageTyphosStatusThread.status_exc
Features
- Rework the design, sizing, and font scaling of the positioner row widget to address
concerns about readability and poor use of space for positioners that don't need
all of the widget components. - Implement dynamic resizing in all directions for positioner row widgets.
- Make the timeout messages friendlier and more accurate when the
timeouts come from theTyphosPositionerWidget. - Make error messages in general (including status timeouts) clearer
when they come from the positioner device class controlled by the
TyphosPositionerWidget.
Bugfixes
- Fix an issue where the row positioner widget's resizing would peg the cpu to 100%
- Fix various issues that cause font clipping for specific motors using the positioner row widget.
- Fix various issues with enum handling in the SignalPlugin.
Maintenance
- Fix issues with cloud-only CI failures and segfaults.
- unpin jinja, sphinx no longer incompatible
- Refactor
TyphosStatusThreadto facilitate timeout message changes. - In dev/test requirements, pin pcdsdevices to current latest to fix the CI builds.
Contributors
- canismarko
- tangkong
- zllentz
v3.1.1
v3.1.0 (2023-12-05)
Features
- Added overridable
find_signalmethod to theSignalConnectionclass to allow the use of alternate signal registries in subclasses. - Updated look and feel: change the typhos suite cli defaults to "embedded" displays arranged "vertically" instead of "detailed" displays arranged "horizontally" to more naturally match how typhos is used at present.
Contributors
v3.0.0 (2023-09-27)
API Breaks
- The deprecated
TyphosConsolehas been removed as discussed in issue #538. TyphosDeviceDisplaycomposite heuristics have been removed in favor of
simpler methods, described in the features section.- The packaged IOC for benchmark testing is now in
typhos.benchmark.ioc.
Features
-
Added
typhos --screenshot filename_patternto take screenshots of typhos
displays prior to exiting early (in combination with--exit-after). -
Added
TyphosSuite.save_screenshotwhich takes a screenshot of the entire
suite as-displayed. -
Added
TyphosSuite.save_device_screenshotswhich takes individual
screenshots of each device display in the suite and saves them to the
provided formatted filename. -
LazySubdisplay.get_subdisplaynow provides the option to only get
existing widgets (by using the argumentinstantiate=False). -
TyphosNoteEditnow supports.add_device()like other typhos widgets.
This is alongside its originalsetup_dataAPI. -
TyphosNoteEditis now aTyphosBaseobject and is accessible in the Qt
designer. -
Added new designable widget
TyphosPositionerRowWidget. This compact
positioner widget makes dense motor-heavy screens much more space efficient. -
The layout method for
TyphosDeviceDisplayhas changed. For large device trees,
it now favors showing the compact "embedded" screens over detailed screens. The order
of priority is now as follows: -
For top-level devices (e.g.,
at2l0), the template load priority is as follows:- Happi-defined values (
"detailed_screen",embedded_screen","engineering_screen") - Device-specific screens, if available (named as
ClassNameHere.detailed.ui) - The detailed tree, if the device has sub-devices
- The default templates
- Happi-defined values (
-
For nested displays in a device tree, sub-device (e.g.,
at2l0.blade_01)
template load priority is as follows:- Device-specific screens, if available (named as
ClassNameHere.embedded.ui) - The detailed tree, if the device has sub-devices
- The default templates (
embedded_screen.ui)
- Device-specific screens, if available (named as
-
Increase motor timeouts proportionally for longer moves.
-
Added dynamic font sizer utility which can work with some Qt-provided widgets
as well as PyDM widgets. -
Qt object names for displays will now be set automatically to aid in
debugging.
Bugfixes
- Fix an issue where setpoint widgets in the full positioner
widget had become zero-width. - Creates new notes file if requested note file does not exist
- Typhos suites will now resize in width to fit device displays.
- For devices which do not require keyword arguments to instantiate, the typhos
CLI will no longer require an empty dictionary. That is,$ typhos ophyd.sim.SynAxis[]is equivalent to$ typhos ophyd.sim.SynAxis[{}].
As before, ophyd's required "name" keyword argument is filled in by typhos by
default. - Fix an issue where ophyd signals with floats would always display with a
precision of 0 without special manual configuration. Floating-point signals
now default to a precision of 3. - Fix issues with running the CLI benchmarks in certain
conda installs, particularly python>=3.10. ophyd.Kindusage has been fixed for Python 3.11. Python 3.11 differs in
enumeration ofIntFlagitems, resulting in typhos only picking up
component kinds that were a power of 2.multiprocessingis no longer used to spawn the test suite benchmarking
IOC, as it was problematic for Python 3.11. The provided IOC is now spawned
using the same utilities provided by the caproto test suite.- Vendored pydm
load_ui_fileand modified it so we can always get our
Displayinstance back inTyphosDeviceDisplay. - Ignore deleted qt objects on
SignalConnection.remove_connection, avoiding
teardown error tracebacks. - Avoid creating subdisplays during a call to
TyphosSuite.hide_subdisplays - Added a pytest hook helper to aid in finding widgets that were not cleaned
- Avoid failing screenshot taking when widgets are garbage collected at the
same time. - Avoid race condition in description cache if the cache is externally cleared
when a new description callback is received. - Avoid uncaught
TypeErrorwhenNoneis present in a positioner
.limits.
Maintenance
- adds TyphosDisplaySwitcher to TyphosPositionerRowWidget
- adds checklist to Pull Request Template
- Add pre-release notes scripts
- Update build requirements to use pip-provided extras for documentation and test builds
- Update PyDM pin to >=1.19.1 due to Display method being used.
- Avoid hundreds of warnings during line profiling profiling by intercepting
messages about profiling the wrapped function instead of the wrapper. - The setpoint history menu on
TyphosLineEditis now only created on-demand.
Contributors
v2.4.1 (2023-4-4)
Description
This is a bugfix and maintenance/CI release.
Bugfixes
- Include the normal PyDM stylesheets in the loading process.
Previously, this was leading to unexpected behavior.
Maintenance
- Fix an issue related to a deleted flake8 mirror.
- Migrates from Travis CI to GitHub Actions for continuous integration testing, and documentation deployment.
- Updates typhos to use setuptools-scm, replacing versioneer, as its version-string management tool of choice.
- Syntax has been updated to Python 3.9+ via
pyupgrade. - typhos has migrated to modern
pyproject.toml, replacingsetup.py. - Sphinx 6.0 now supported for documentation building.
Contributors
v2.4.0 (2022-11-4)
Description
This is a small release with features for improving the usage
and configurability of the PositionerWidget.
Features
- Report errors raised during the execution of positioner
setcommands in the positioner widget instead of in a pop-up.
This makes it easier to keep track of which positioner widget
is associated with which error and makes it less likely that the
message will be missed or lost on large monitors. - Add a designer property to
PositionerWidget,alarmKindLevel,
to configure the enclosed alarm widget'skindLevelproperty in
designer. This was previously only configurable in code.
Contributors
- zllentz
Full Changelog: v2.3.3...v2.4.0