What’s New in playNano 0.5.3¶
Release date: 2026-11-20
This is a bug-fix release, and upgrading is recommended for all users. It fixes
polynomial_flatten on large frames and on data with missing pixels, values in
--processing and --analysis-steps strings, the wizard’s save, and
playnano analyze output names and exit codes. Almost every documentation example
has been checked and corrected.
Before You Upgrade¶
Re-run
polynomial_flattenat order 3 or higher. On frames of a few hundred pixels or more, the fit silently left background behind. Results at these orders change; results at orders 1 and 2 do not.Scripts that check exit codes:
playnanowith no subcommand now exits with code 2, andplaynano analyzeexits with code 1 if any output file could not be written.Step values are now read as Python values. In
--processingand--analysis-stepsstrings,[0,1]is a list,trueisTrueandnoneisNone. To pass text that looks like a number, quote it:name='1'.
Fixed¶
Processing¶
High-Order Flattening:
polynomial_flattenandpolynomial_flatten_maskedfitted with raw pixel coordinates, so at order 3 and above on large frames some polynomial terms were dropped without warning. On a 512 px frame at order 4 the residual background was 0.187 instead of the noise level of 0.010. Coordinates are now scaled to −1…1 before fitting. Both filters are now version 0.2.0.NaN Pixels: A single NaN pixel made
polynomial_flattenreturn an image that was entirely NaN, and maderemove_planefail. All four plane and polynomial filters now leave NaN pixels out of the fit and keep them NaN in the output.remove_planeandremove_plane_maskedare now version 0.1.1.
Command line¶
List and Number Values: Step strings were split on every comma, so
drop_frames:indices_to_drop=[0,1]failed, and values such as[0],1e3andnonewere not converted. Lists, tuples, numbers,true/falseandnone/nullnow work in--processingand--analysis-steps.Wizard Values: Values typed into the wizard for list, tuple, optional and unannotated parameters stayed as text. They are now converted, so
padforintersection_cropandcrop_squareaccepts2or2,3.Wizard
save: Saved pipelines containing tuples or NumPy values could not be loaded again.savenow writes plain YAML.analyzeOutput Names:--output-name ../namewrote outside the output folder, andrun.jsonbecamerun.json.json. Names are now handled as inprocess.Exit Codes:
playnano analyzereported success when the HDF5 file could not be written. It now writes every file it can, then exits with code 1 and names the files that failed.playnanowith no subcommand still shows the help, and now exits with code 2.Tracebacks: With
--log-level DEBUG, errors fromplay,processandwizardnow include the traceback.
Documentation¶
Working Examples: Examples used step names that do not exist (
threshold_mask,detect_particles,track_particles),--export npz hdf5instead of--export npz,h5,draw_scale_barinstead ofdraw_scale, and a wrong loader import. All examples were rerun and now work.Reference Content: Bundle contents, provenance, operation defaults and the installation page were corrected.
Converting Files: The exporting guide now shows how to convert HS-AFM files to OME-TIFF, NPZ or HDF5 from the CLI: run
playnano processwithout--processing.Website: The version switcher is now at the top of the sidebar, where it can be reached at normal zoom, and publishing a release no longer removes the
maindocumentation.
Changed¶
The plane and polynomial filters no longer need scikit-learn, so importing the processing filters is faster.
The conda environment file is now
environment.yaml(it was misspelled), and it no longer limits NumPy to versions below 2.0.Tests, pre-commit checks and the documentation build also run on the
devbranch.
For the full list of changes, see the Changelog.