What’s New in playNano 0.5.4¶
Release date: 2026-11-27
This is a bug-fix release, and upgrading is recommended for all users. It fixes
two loaders that gave wrong results (.aris heights and .jpk folder
orientation), stops .npz bundles from running code when opened, and makes
several command-line errors clearer. The whole API reference has been reviewed
against the code.
Before You Upgrade¶
Re-run analyses of
.arisfiles. Heights were loaded in metres instead of nm, so they were 1e9 times too small. Thresholds, colour scales, scale annotations and analysis heights from.arisdata all change.Check orientation-dependent results from
.jpkfolders. Frames were loaded upside down. Images, exports, tracks and drift direction change; passflip_image=Falseto get the old orientation.Upgrade if you open
.npzfiles from other people. A crafted file could run code when opened. Bundles you saved yourself were never a risk, and they still open.
Security¶
Safe
.npzBundles:.npzbundles were read with pickling allowed, so a crafted file could run code when opened withplaynano play,process,analyzeorload_afm_stack. Bundles are now written without pickled data and read with pickling turned off. Bundles saved by earlier versions still open: their text fields are read with a restricted reader that can only rebuild text arrays, and a file containing anything else is refused.
Fixed¶
File loading¶
.arisHeights in nm: Height and amplitude channels are converted from the file’s length unit to nm, as in the other readers. Other channels, such as phase in degrees, are unchanged..jpkFolder Orientation: Frames were flipped twice, cancelling AFMReader’s flip. They are now flipped once and match AFMReader and the.h5-jpkreader.Wrong Channel Names: Asking for a channel a file does not have now lists the channels it has.
playnano processand the wizard show this message instead of only “Failed to load”, andplaynano playshows it once instead of twice.
Command line¶
playZ-Limits: An invalid--zminor--zmaxnow warns and opens the window withautolimits, which can be changed in the window.Paths with Flags: A quoted Windows path ending in
\swallows the options after it.playnano playnow explains how to fix the path, with exit status 1 and no traceback.Analysis Steps:
clearis rejected as an analysis step straight away. It is a processing step, and was accepted and then failed when the analysis ran.Wizard Help:
helpnow lists theloadandclearcommands.Clearer Errors: An unknown processing step lists the available steps by type, and an unknown
--cmaplists the available colormaps.
GUI¶
Quieter Logs: The GUI no longer logs a warning on every repaint while the scale bar is off, or an error each frame when the pixel size is missing.
Logging in Scripts: Importing the GUI no longer sets up Python’s logging, so a script’s own
logging.basicConfigtakes effect again.
Analysis export¶
JSON Export: Analysis results holding NumPy bools or text arrays no longer stop the JSON export.
Documentation¶
Reviewed API Reference: Every docstring in the API reference has been checked against the code. Wrong parameters, defaults, units and errors were corrected, and made-up example output was replaced with examples that run as doctests. The whole documentation now builds without warnings, and pull requests fail if a warning appears.
Command-Line and GUI Pages: The API pages for
playnano.cliandplaynano.guiwere published empty. They now render.GUI Processing: The GUI page now says that
--processingsteps run when Apply Filters (F) is pressed, not when the window opens.
Changed¶
Tests use a real
.arisfile: two frames of a DNA origami recording (G. Heath, Zenodo 10670413, CC BY 4.0).The documentation links types to the NumPy, SciPy, h5py, scikit-image and scikit-learn documentation.
For the full list of changes, see the Changelog.