Changelog

Version 0.16.0-alpha.1

This section was edited by an LLM (Claude Opus 5.5) for Constantine Evans, from entries partly written with LLM assistance. Changes are relative to 0.15.3.

qslib

  • Instrument messages of several lines, which the instrument wraps in a tag such as <quote.message>, are now received whole, without the tag. Only their first line was kept before.

  • Added qslib-server as a Machine backend. backend="qslib" selects HTTP and backend="auto" probes once during construction. HTTP defaults to port 7500. Direct SCPI remains the default. If you previously selected HTTP with server_port alone, add backend="qslib" or backend="auto". Replace the file-transfer fast and fallback arguments with the intended backend when creating the machine. Machine.ensure_server deploys a supplied ARMv7 binary from a SCPI machine object.

  • Machine.ensure_server now uses qs-monitor’s deployment code, which has moved into the Rust library. A server it starts writes its output to <remote_path>.log, keeping the previous log as <remote_path>.log.1, and its process is recorded in <remote_path>.pid (qs-monitor used to write <remote_path>.qs-monitor.pid), so that qs-monitor can stop and replace it. A process running from remote_path that does not answer is not replaced. The Machine’s password is passed to the server in its environment, not on its command line. remote_path and file_root may contain only letters, digits and /._:-, and listen must be an IP address and port.

  • Experimental QuantStudio 6 Pro support for firmware 1.4.0. The implementation was largely LLM-generated and has only been tested against one instrument.

  • On the QuantStudio 6 Pro, Machine.run_status no longer asks for the current operation (OPeration?), which has not been tried on that model, so a paused run is reported there as Running.

  • Machine.restart_system refuses to restart during a run unless given force=True, as restart_machine already did, over direct SCPI and through qslib-server. Their documentation describes what the instrument’s recovery does with a run interrupted this way.

  • Fixed Protocol.dataframe naming its cycle and step index levels the wrong way round. The index is now stage, cycle, step, point, as the data always was.

  • Removed the monitor extra and the qs-monitor console script, whose module was not part of the package. qs-monitor is a separate program (see below).

  • Removed Machine.generate_random_key. Its RAND? command means different things on different firmware versions: on 1.3.2 it returns a random number, not an access key.

  • Linux wheels are now built for manylinux 2.28 (glibc 2.28 or later), rather than manylinux 2014.

  • AbortRun allows two minutes for the instrument’s reply while it cleans up the run. Machine.run_command accepts an explicit reply timeout for other long-running SCPI commands.

  • When the instrument’s AbortRun fails with an internal error or NoSuchFlag after the run has stopped, Machine.abort_current_run and the qslib-server abort action now succeed, after a cleanup of qslib’s own: clearing roicontext and aborting each remaining flag, waiting at most 10 seconds for each. This is what the end of AbortRun does in firmware 1.6.1, and is done on every version, although AbortRun in 1.3.2 and 1.5.1 does neither. The internal error comes from a race in the instrument firmware’s TBC:UNHOLD, which fails when the hold it cancels ends at the same moment, so it can happen on instruments as well as on the simulator.

  • Machine.stop_current_run over direct SCPI returns once the instrument shows that the stop has been requested, as qslib-server now does. The instrument replies to StopRun only when the run stops at the end of its current cycle, so it used to wait for the cycle to end, and raised TimeoutError if that took more than ten minutes although the stop had worked.

  • Allowed Polars 2. Sample names are now joined to fluorescence data without reordering the readings, which Polars 2 otherwise did. The tests run with Polars 2 and with Polars 1.21, the oldest version allowed.

  • Stage.stepped_ramp(points_per_step=n) now emits n separate steps rather than one step repeated n times. The instrument runs a repeated step synchronously, so its temperature hold did not overlap acquisition and each point took about twice as long as asked for, silently stretching the run. The temperatures and the requested timing are unchanged.

  • Protocol.validate now warns about a collecting step with a repeat, for the same reason.

  • Added Step.ramp_rate, a percentage of the run-mode ramp rate, serialized as the RAMP -rate option. It must be positive, and a rate other than 100 is shown in the step’s description.

  • Added qslib.timing, with TimingProfile, OpticsTiming and ProtocolTimeline, Protocol.estimate_timeline, and Machine.get_timing_profile. The estimate follows how the instrument runs a repeated collecting step: for each point it holds for the full time and then, as for an unrepeated step, waits until about 4 s before where the hold would end before collecting, so a 20 s point takes about 36 s. A ramp to different zone temperatures takes as long as the zone with the longest ramp, as the instrument slows the other zones to arrive with it. No empirical ramp calibration is bundled; the tools for building one are in the private qslib._timing_calibration module for now.

  • Stage.dataframe and Protocol.dataframe remain a simple view with a fixed 1.6 °C/s ramp rate, now documented as ignoring Step.ramp_rate, the run mode, the volume and collection time.

  • Fixed event annotations shading the periods the drawer was shut rather than the periods it was open. The cover was already right.

  • Experiment.events’ seconds and hours columns are now numbers in those units. They were durations, so hours in particular was not in hours at all. They also now exist, as nulls, for a run with no active start time.

  • Fixed plotting of a run that is still in progress: its last stage has no end time, which raised a TypeError.

  • Stage lines are now drawn whenever the stage boundary is in view, rather than only when the whole stage is. Their annotations now appear in plot_over_time, and both are placed correctly for time units other than hours.

  • Experiment.stages now always has the same columns, and exists for an experiment with no message log.

  • A slice of stages with a negative step now selects what the same range would: slice(4, 1, -1) selects stages 4, 3 and 2. plot_over_time and stage lines selected nothing for such a slice, and plot_over_time_altair selected nothing for slice(None, None, -1). A step of 0, or a step below -1 with no start, raises ValueError. plot_over_time_altair now takes the same stage selections as plot_over_time, and with start_time="stage" measures from the first selected stage that the run has.

  • A run that ended, was aborted or was stopped during its first stage now records an end time for that stage.

  • Fixed Experiment.plot_over_time raising NameError when given a sequence of axes, which is how the temperature axes are supplied.

  • Removed stray debug prints from Experiment.plot_over_time and stage annotation, and from a failed protocol XML parse, and stopped logging the arguments of every machine status at INFO.

  • RunStatus.point is now -1 when no run is in progress. The machine does not clear its own Point when a run ends, so it kept reporting the last point of the previous run.

  • Fixed serialization of stage labels and protocol names that need quoting. They were written into the SCPI command raw, so a label containing a space displaced the stage body, and the instrument rejected the protocol.

  • Fixed stage labels being dropped when a protocol was read back from its SCPI form.

  • Stage.label is now Stage.instrument_label, as it is the stage’s label in the machine’s protocol format, not a description. There is no alias: code setting label will raise. Protocol.validate now warns about a label that qslib-server would refuse: labels there must be 1 to 128 ASCII letters, digits, spaces and _-.().

  • Protocol now copies the list of stages it is given, and Protocol.validate replaces a stage it renumbers or relabels rather than changing it. Validating a protocol built from another protocol’s stages changed the stages of the original.

  • Experiment.plot_over_time again plots only the data of the stages selected with stages, and now draws stage lines only for those stages. The data filter was lost when plotting moved to Polars (8f7d15a), so every stage was plotted and only the title reflected the selection. The unused stages parameter of the private _annotate_events is removed.

  • A protocol read from tcprotocol.xml (Protocol.from_xml) now has pcr off for every step. The file does not record that option, and it was set on.

  • Machine.define_protocol and Experiment.run now raise ValueError for a protocol name the instrument cannot run: names may contain only letters, digits, _ and -, must not start with -, must not be a number other than a plain whole number (so not 0123, 1e5, inf or nan), and must not be true, false, yes, no, on or off in any case. The instrument stores each protocol in a variable named after it, which allows only those characters, and reads number-like and boolean-like run arguments as numbers and booleans, so such names either fail to run or are reported back differently. Such protocols can still be created and loaded, and Protocol.validate warns about them. The check is the one qslib-server applies, which also limits names to 128 bytes in UTF-8.

  • Fixed reading the protocol name from a run’s messages.log, which took the run name instead. Runs started by qslib have no NEXT RP line in messages.log, so their protocol name is not available there.

  • Added Experiment.change_plate_setup, which replaces the samples in the plate setup file in a run’s folder on the machine (with no argument, it writes the experiment’s current plate setup), and Machine.get_plate_setup and Machine.set_plate_setup. Writing raises an error, rather than dropping wells, if the plate type differs from the run’s existing plate setup or a well is not on the plate.

  • Experiment.from_running now copies the run folder file by file, as Experiment.sync_from_machine does, rather than with one ZIPREAD?, which failed if the instrument deleted a file while building the archive and sent nothing until the archive was complete. This keeps a transfer receipt, so a later sync copies only new and changed files. Over qslib-server, files are downloaded one by one, and an interrupted download continues on the next sync. Acquisition images (apldbio/sds/images) are left out unless given include_images=True. Experiment.from_uncollected still uses ZIPREAD? by default, and copies the files the same way with method="files". Both take method="files" or method="zip" to choose over SCPI.

  • Added Machine.read_files and Machine.read_dir_files, which send READ? commands in groups before collecting the replies and leave out files that no longer exist. This avoids a delay after every reply: reading several hundred small files took about 4 ms per file, against 30 to 40 ms one at a time. Experiment.sync_from_machine uses it.

  • Machine.download_dir takes include_images.

  • Machine.read_dir_as_zip takes a timeout, 10 minutes by default (previously 30 seconds for the first reply), and Machine.run_command_to_bytes takes a timeout.

  • Machine.read_dir_as_zip raises FileNotFoundError for a missing directory. Experiment.from_uncollected then tries the name as given after the name with underscores, and reports a run it cannot find as such.

  • An SCPI reply is no longer cut off after 30 seconds while its data is still arriving. An open tag is now closed early only after 30 seconds without data, or after 10 minutes.

  • Experiment.from_uncollected, from_machine_storage, from_machine, latest_from_machine, Machine.load_run_from_storage and qslib copy (--images/--no-images) take include_images too. Images are still included from storage by default, and from_machine and latest_from_machine keep each source’s default unless given a value. Without images over qslib-server, a stored EDS file is read in parts so that image data is not transferred; over SCPI, it is still read whole.

  • Over qslib-server, Experiment.from_uncollected with include_images=True downloads the images one by one, uncompressed, after an archive of the other files. Previously the server compressed the images into the archive before sending anything.

  • Over SCPI, Experiment.from_uncollected (and from_running with method="zip") without images now checks whether the run folder has any, and if so names the other files in its ZIPREAD?, so that the instrument does not read the images. Previously the whole folder was read and the images were left out locally. Hidden files, which the listing does not show, are then left out too. With more than 1000 other files, the files are read one by one instead, since the instrument compares every file with every name and writes the command into the log of a run in progress. Machine.read_dir_as_zip takes files to name the files to read.

  • Experiment.sync_from_machine takes include_images, replacing include_tiffs, which still works with a DeprecationWarning, and a progress callback. It now compares sizes as well as modification times, writes each file to a temporary file before renaming it into place, and keeps a transfer receipt (.qslib-transfer.json, not saved into EDS files) recording each copied file’s size and remote modification time, which later syncs use to skip unchanged files. Previously an interrupted copy could leave a partial file that later syncs kept.

  • When some files cannot be copied, Experiment.sync_from_machine copies the rest, saves the transfer receipt, and then raises SyncIncompleteError listing the files that failed; a later sync copies only those. Previously such failures were logged, and a timeout or an unexpected reply during the SCPI batch read, or a local file error, stopped the sync. Machine.read_files takes a failures dict to record errors by path instead of raising.

  • Experiment.sync_from_machine works after the machine has collected the run and its folder is gone from experiments:: it updates the local files from the stored EDS file and removes the transfer receipt, rather than raising a CommandError. It reads the live protocol only while the run is the machine’s current run, so it no longer logs a warning with a traceback when nothing is running.

  • Added Machine.download_file, which copies one file and replaces the local copy only when complete.

  • QSConnection.authenticate and Machine.authenticate now use the Rust implementation in qslib-core. Machine.authenticate raises AuthError for a rejected password (previously CommandError), so the CLI’s wrong-password messages are now shown, and ConnectionError when there is no connection.

  • QSConnection.set_access_level accepts access level names in any case.

  • Removed the "Server" connection type and the server_token argument from the low-level qslib._qslib.QSConnection. Nothing in qslib used them. The qslib-server SCPI tunnel remains, and qslib-core’s QSConnection::connect_server_tunnel still connects to it.

  • Experiment.run on an instrument in the Error state now raises MachineInErrorError, rather than MachineBusyError (it is not a subclass of it). Its errors holds the most recent fatal entries of the instrument’s error log (at most 10), and its message lists them. The instrument is in this state while its error count (ERRor?) is above zero. The firmware’s fatal-error handlers raise the count, as do some failed self-tests, and it is cleared when the InstrumentServer restarts or the count is reset.

  • Added Machine.errors, which returns the last limit entries (default 100, None for all) of the instrument’s error log, the errors and warnings since the InstrumentServer started, as ErrorLogEntry objects, oldest first. It needs only Observer access, and also works with backend="qslib".

  • qslib machine-status lists the most recent fatal errors for an instrument in the Error state, and no longer prints an empty run line for it. qslib machine-power no longer describes an instrument in the Error state as running a run.

qslib-core

  • New crate holding the SCPI connection and parser shared by qslib, qslib-server and qs-monitor. The Rust qslib crate depends on it.

  • QSConnection::get_running_protocol_string, used by qs-monitor, now quotes the protocol name and fails unless the instrument returns exactly a name, sample volume and run mode.

  • Removed the simd feature. Message framing always uses memchr, and winnow’s simd feature is always enabled. The simd feature of the qslib crate is also removed.

  • QSConnection::authenticate returns a rejected password as CommandError::CommandError with the instrument’s error response, and a timeout or disconnection as CommandError::ParseResponseError, rather than CommandError::InternalError. qslib-server therefore answers a wrong --scpi-password with 403 rather than 503. A challenge made only of digits (with at most one e) was parsed as a number, so authentication failed; such a challenge is now replaced by requesting another.

  • Fixed replies with other tags inside a quoted value, such as the traceback in an instrument internal error, never reaching the waiting command, which then timed out. As in the instrument, once a tag is open only tags of the same name now count toward closing it. MsgReceiveError::MismatchedCloseTag is removed.

  • Fixed a log message containing a Python object description, such as <built-in method release of thread.lock object at 0x...>, being taken as an unclosed tag, so that the replies after it, until the connection was dropped, never reached their commands. A tag’s name must now be made of letters, digits, _ and ., as in the instrument, and its attributes must be name="value" pairs, for it to count. The instrument sends such a message occasionally when AbortRun is used.

  • A closing tag with no tag open, as in an unquoted error reply such as ERRor 2 [Test] boom </tagx> boom, is now read as text, and the reply reaches its command. Before, the line was discarded as a receive error and the command timed out. MsgReceiveError::UnexpectedCloseTag is removed.

  • As in the instrument’s own client, only the first opening tag of a reply can make it span several lines, and now only if the tag begins a word, as the instrument’s tags do. Before, <string> in a Python error such as (<string>, line 1), which the instrument sends when a $[...] expression fails, held that reply and the ones after it for up to ten minutes.

  • Error replies to commands that the instrument cannot parse, such as one whose $(...) or $[...] fails, now reach their command. The instrument names the previous command in these replies, so they went to that command or were dropped, and the failing command timed out. When such a command is the first on a connection, the instrument closes the connection instead of replying.

  • RunProgress? replies during a run where the stage, cycle or step is - are now read as running with those fields left as -, rather than rejected. This also affected QuickStatus. RunProgress::reports_no_stage reports when none of the three is set: the instrument clears them at the end of every stage and step, so this happens before the first stage, between stages, at the end of a run and while an aborted run is cleaned up. A reply with no run title is read as not running; at the end of a run the instrument clears the title before the run mode.

  • QSConnection::stop_current_run and stop_run return once the instrument acknowledges StopRun and shows the stop as requested (StopRequestedQuery, reading RunControl) or no run is in progress, rather than waiting for the run to stop at the end of its cycle.

  • QSConnection::abort_current_run and abort_run handle an AbortRun that fails after the run has been aborted (an internal error or NoSuchFlag) as Machine.abort_current_run and qslib-server do: they wait for the run to end and carry out the skipped cleanup (finish_abort_cleanup). abort_failed_after_run_aborted identifies these errors.

  • Added ErrorLogQuery (LOGG:READ? Error), ErrorCountQuery (ERRor?) and ErrorLogEntry, which parses error log lines and Error topic messages.

qslib-server and HTTP clients

  • Added qslib-server, an optional HTTP server that runs on the instrument. It provides status, control, runs, events, named files, directories, archives and, if enabled, raw SCPI. Requests are authorized with bearer tokens that carry a role, except GET /health, which answers without credentials. Changes to the instrument can be disabled separately by server policy. Operations can be repeated safely with an idempotency key, and the event stream can be resumed from a cursor.

  • No feature requires the Administrator role. An administrator token is accepted and treated as a Controller token.

  • Raw SCPI is open to every role. The one-shot session is set to the requested access level, which is at most Observer, or at most --max-access for a Controller token on a server with both --allow-controls and --allow-file-writes; the instrument then decides what the command may do. The server no longer limits lower levels to commands whose name ends in ?.

  • The SCPI tunnel (with --enable-scpi-tunnel) needs a Controller token.

  • qslib-server has no access-key operation, because RAND? does different things on different firmware versions.

  • Every token can read every operation record and receives every operation event; they are no longer limited to the token that created them.

  • Changed: Machine.ensure_server and qs-monitor install their token with the Controller role. The token_role argument of ensure_server is removed.

  • Protocols staged through the server are checked against the subset of the protocol format the server accepts, and protocols whose names the instrument cannot run are rejected with an invalid_input error. If installing an experiment or starting a run fails part way, the earlier state is restored.

  • Paused runs are reported as Paused. The instrument’s ISTAT? remains Running during a pause, so the server also reads the current operation.

  • Archive downloads are sent in small chunks while the archive is built, so the server’s memory use does not grow with the size of the files. They leave out files removed meanwhile and take a repeatable exclude parameter. ServerClient.download_dir takes exclude. Each member’s sizes follow its data, so save an archive to a file before extracting it.

  • At most two file or package uploads are received at once; later ones wait.

  • File reads support Range and If-Range. ServerClient.download_file keeps a partial file and continues an interrupted download, and ServerClient.open_abs_file gives a seekable file read with ranged requests.

  • The API’s entry document at GET /api/v1 lists the paths of the other resources (as HAL _links) and, as keys of _templates with empty values, the actions the caller may currently use. Other representations carry _links only. The Rust and Python clients follow these paths, and check for each feature they use, so that a missing feature gives an error naming it. Machine and Experiment use the server only for the features it offers.

  • file_context_roots in the server’s capabilities maps absolute instrument paths to named file contexts.

  • The run preflight reports an instrument in the Error state with the code machine_error, rather than machine_busy, and gives the instrument’s error log’s most recent fatal entries in details.errors.

  • The instrument status includes error_count (ERRor?, or null if the instrument refuses it) and, only while the instrument is in the Error state, fatal_errors: the most recent fatal entries of its error log, at most 10. Warnings are not included, and the log is only read in the Error state.

  • Added GET /api/v1/instrument/errors (relation qs:instrument-errors, Observer role), which returns the last limit entries of the error log (default 100, 0 for all), oldest first. ServerClient.instrument_errors reads it.

  • Added GET /api/v1/instrument/system-logs/{name} (relation qs:instrument-system-log, Observer role), which returns the instrument’s kernel log (kernel, from dmesg) or Android log (logcat, from logcat -d) as {"name", "text"}. The server reads them with SYST:EXEC -verbose, so it needs Controller access to the instrument. ServerClient.system_log reads it.

  • qslib-server’s log now includes qslib-core’s messages, such as connection and message framing errors, filtered by QSLIB_SERVER_LOG in the same way as its own.

  • There is now one qslib-server client, in Rust (qslib::server_client). qs-monitor uses it directly, and qslib.server.ServerClient calls it through the Python extension, releasing the GIL while it waits for the server. The Python methods and exceptions are unchanged. Waiting for an operation retries polls that time out or get a 408, 429 or 5xx response until its deadline.

  • The client now finds every resource other than /api/v1, /api/v1/capabilities and /health through the entry document, and no longer falls back to built-in paths when it is unavailable or lacks a resource. Form-style query links such as run-preflight are followed. The Rust client no longer reads exe_sha256 and scpi_ok as names of health fields.

  • ServerClient.has_link and ServerClient.allows return a bool and raise the error from reading the entry document, rather than returning None. Machine and Experiment no longer fall back to the capability flags to decide which features the server offers.

  • qslib-server no longer reads a bare integer Last-Event-ID as a sequence number; like a cursor from another epoch, it starts the stream with a reset event.

  • The stop action succeeds once the instrument shows the stop as requested. It used to wait for the run to end, and so timed out with an unknown outcome when the current cycle had more than 30 seconds left.

  • The restart action refuses to restart during a run, with machine_busy, unless the request body has "force": true. ServerClient.restart_instrument takes force.

  • The stop and abort actions treat an instrument with no run title as having no run. With its error count above zero the instrument reports Error rather than Idle without a run, and a finished stop or abort was reported as a change of the current run.

  • The JSON types of the qslib-server API are defined once, in qslib_core::server_api (feature serde, re-exported as qslib::server_api), and used by both the server and the Rust client. The client’s Capabilities, Health, InstrumentStatus, IndicatorStatus, BlockStatus, ListEntry and RunningProtocol are replaced by CapabilitiesDto, HealthDto, InstrumentStatusDto, IndicatorDto, BlockDto, ListEntryDto and RunningProtocolDto; RunStatusDto and StartRunRequest have moved there too. InstrumentStatusDto.observed_at is a chrono::DateTime<Utc> rather than a string, CapabilitiesDto.sse_cursor_format a String rather than an Option, and ListEntryDto.attributes a BTreeMap. The JSON sent by the server is unchanged.

  • RunStatus and MachineStatus can be constructed in Python from their fields. Machine builds them in this way from the server’s JSON, rather than writing SCPI reply text from the JSON and parsing that.

  • Fixed temperatures that the instrument reports as NaN, which the server sends as null, being left out of MachineStatus.sample_temperatures and block_temperatures (so that later entries no longer matched their zones or sensors) and read as 0 for the cover and LED, when using the server. They are now NaN in their place, as with direct SCPI. The Rust types in server_api likewise read these null values as NaN, so qs-monitor no longer fails to read the instrument status when a temperature is NaN.

  • POST /api/v1/scpi takes a JSON or a plain-text body and returns the text of the instrument’s reply as it was written, rather than re-rendering the parsed reply. It no longer takes encoding=bytes or sends the X-SCPI-Status, X-SCPI-Access and x-scpi-error headers. It refuses a command that ends in a backslash or leaves a <<< or <tag> quotation open, which the instrument would continue onto the next line.

  • --no-auth alone gives anonymous Observer access; the --unauthenticated-role option is removed. The unauthenticated_role key of the token file is unchanged.

  • qslib-server sets TCP_NODELAY on its connections. Without it, a small file’s contents were often held back until the client acknowledged the response headers, which added about 40 ms per request on a local network and a network round trip per request on a remote one, so reading a folder of small files file by file was several times slower than over SCPI.

qs-monitor

  • qs-monitor is now released as a Linux x86-64 bundle, with the matching ARMv7 qslib-server binary and an installer. See qs-monitor/CHANGELOG.md for its changes.

Project infrastructure

  • Releases now include a static ARMv7 musl qslib-server binary and the Linux qs-monitor bundle, with SHA-256 checksums.

  • Releases are built and published by GitHub Actions when a version tag is pushed, with SHA256SUMS attached to the GitHub release.

  • Copyright and licence information for all files is given in REUSE.toml, which replaces .reuse/dep5.

Version 0.15.3

  • Fixed SmoothWindowMean and SmoothEMWMean bugs. By default from 0.14.0 these used Polars processors, which smoothed by time without properly grouping. Pre-0.14.0, and using Pandas processors, filter_sets could be inadvertently merged together (though not different wells). SmoothEMWMean also now gives Polars its min_periods, adjust and ignore_na settings, which had been silently left at the Polars defaults.

  • Polars 1.21 or later is now required, for min_samples and check_sortedness.

  • Experiment.latest_from_machine now accepts a host name string, like the other methods that take a machine.

  • Experiment.plot_over_time now plots lines in the order the samples (or wells) and filter sets were given, so that colors follow that order and match between plots. This was a 0.14.0 regression.

  • Experiment.plot_over_time_altair now accepts well names as well as sample names, as Experiment.plot_over_time does.

  • Removed a stray print of the y-axis label from Experiment.plot_over_time.

  • Fixed Experiment.abort when the experiment already has a machine.

  • Loading an experiment no longer prints a Polars warning about column sortedness.

  • Added commands for querying and setting the status led.

  • Compress EDS archives written by Experiment.save_file() with ZIP deflate, including file and in-memory outputs.

  • Moved the canonical documentation URL to https://docs.costi.net/qslib/ and added a GitHub Pages deployment workflow.

  • Made Forgejo runner labels configurable and namespaced persistent caches by forge, preventing the Codeberg and git.costi.net runners from sharing cache volumes.

  • Restricted release publication to one explicitly selected forge, limited intermediate wheel artifacts to one-day retention, and stopped mirroring wheels into Forgejo Packages or attaching them permanently to Forgejo releases.

Version 0.15.2

Protocol fixes

  • Correct collection-filter attributes in tcprotocol.xml for hacform filter strings.

Communication fixes

  • Treat zero-byte reads as disconnects.

  • Resynchronize malformed messages at newline boundaries.

  • Bound response waits and make Python waits interruptible.

  • End log subscriptions when the connection closes.

  • Prevent response-channel backpressure from blocking the receive loop or dropping terminal responses.

  • Report response parse failures when their identifier is recoverable.

Stage identity fixes

  • Add raw stage names to RunStatus and distinguish PRERUN from POSTRUN positions.

  • Use Polars APIs for Altair stage selection.

  • Warn when collected-data stage values are nonnumeric.

Version 0.15.1

Data fixes

  • Fix welldata / filter_data time columns on v1-spec EDS files. In 0.15.0 the v1 codepath was rewritten to go through filter_data_polars (which emits Datetime[ms, UTC]) and reformat back to the legacy pandas multi-index; the timestamp conversion assumed astype("int64") returned nanoseconds, so it divided by 1e9 and produced timestamps 1e6× too small (and huge negative seconds/hours). Now uses a time-unit-agnostic subtraction from the Unix epoch.

  • Add temperatures_polars_wide for callers that need the 0.14-era wide schema (timestamp as Datetime[ms, UTC], one column per (kind, zone) — sample_1..N, heatsink, cover, block_1..N). temperatures_polars itself remains long-format (the intentional 0.15 default), now also with a time column derived from timestamp.

Version 0.15.0

Robustness improvements to communication, consolidation of parsing into Rust, and a new quant/calibration data pipeline:

Communication fixes

  • Fix READY message read to handle partial TCP reads (TCP does not guarantee message boundaries).

  • Fix double newline on command send when content already has a trailing newline.

  • Fix quoted string parser to handle backslash escape sequences (\", \\, \n, \t).

  • Fix ErrorResponse parser to handle errors without brackets.

  • Fix Rust parser tag character set to include underscore (e.g. <quote_reply>).

  • Fix DRAW? returning “false” instead of “Open” by not coercing open/closed to Bool in response parser.

  • Add single-quote string support to Rust parser.

  • Extend boolean parsing to cover all server-recognized forms (yes/no, on/off, open/close).

  • Extend command name character set to include +, -, ~, < (e.g. SUBS+, FLAG-).

  • Add WARNing response type to Rust parser.

  • Add tag stack timeout to message receiver, preventing unclosed tags from absorbing all subsequent messages.

  • Send QUIT command on disconnect for clean server-side cleanup.

  • Handle auth-required gracefully in Machine.connect() with a clear error message for remote connections.

  • Handle ExclusiveAccess and AccessGiven errors as specific exception subclasses.

Data and protocol fixes

  • Fix IncrementCycle/IncrementStep defaults to match server (default=2, not 1).

  • Fix SampleTemperatures separator mismatch in multicomponent data parsing.

  • Remove overly strict temperature zone and plate type assertions.

  • Parameterize plate type in Experiment._new_xml_files instead of hardcoding 96-well.

New features

  • Consolidate Python parsing to Rust: AccessLevel, FilterSet, SCPICommand, PlateSetup all now handled in Rust; pyparsing dependency removed.

  • Add Rust quant/calibration file parsers and filterdata reconstruction from quant + calibrations (matches filterdata.xml to <0.1 error).

  • Add ROI calibration parsing and TIFF-to-quant processing pipeline (exact match to instrument output).

  • Migrate FilterDataCollection loading and timestamp-setting to Rust.

  • Dynamic zone count querying via Machine.get_zone_count() instead of hardcoded 6.

  • Expose server random key auth mechanism via Machine.generate_random_key().

  • Validate READY message capabilities on connection.

  • Make subscribe_log() actually send SUBS+ command to the server.

  • Parse MESSage timestamp structurally in LogMessage.

  • Extend Subscribe command builder with timestamp and multi-topic support.

  • Add exclusive and stealth flags to AccessLevelSet command.

Testing

  • ~226 new tests across Rust and Python, covering communication, parsing, plate setup, processors, and machine logic.

Security

  • Update rustls-webpki 0.102 → 0.103 to fix four advisories: CRL distribution-point matching (RUSTSEC-2026-0049), URI name-constraint bypass (RUSTSEC-2026-0098), wildcard name-constraint bypass (RUSTSEC-2026-0099), and reachable panic in CRL parsing (RUSTSEC-2026-0104).

  • Bump bytes to 1.11.1 (integer overflow in BytesMut::reserve, RUSTSEC-2026-0007), quinn-proto to 0.11.14 (QUIC endpoint DoS, RUSTSEC-2026-0037), and time to 0.3.47 (stack-exhaustion DoS, RUSTSEC-2026-0009).

  • Port qs-monitor from matrix-sdk 0.9 to 0.16, fixing three advisories: encrypted-event sender spoofing (RUSTSEC-2025-0041), panic in RoomMember::normalized_power_level() (RUSTSEC-2025-0065), and DoS via custom m.room.join_rules events (RUSTSEC-2025-0135).

Build

  • Vendor matrix-sdk 0.16 with #![recursion_limit = "512"] added to work around rust-lang/rust#152942 (query-depth overflow on rustc 1.94+ due to matrix-sdk’s deeply nested #[tracing::instrument] async chain picking up an extra ManuallyDrop layer).

  • qs-monitor/src/main.rs gets the same attribute to raise the trait-solver limit for Send-ness of Client::sync() when passed to tokio::spawn.

CI

  • Bump GitHub Actions past the Node.js 20 deprecation: actions/checkout v4→v6, setup-python v5→v6, upload-artifact v4→v7, download-artifact v4→v8, extractions/setup-just v2→v4, astral-sh/setup-uv v7→v8.1.0, codecov/codecov-action v5→v6.

  • Fix wheel-test jobs on Linux: RUSTC_WRAPPER=sccache was leaking from maturin-action into subsequent uv sync invocations where sccache isn’t on PATH, failing silently on macOS (sccache pre-installed) but breaking Linux. Now overridden per-step.

  • Drop macOS x86_64 (Intel) from the wheel matrix (<8 Darwin downloads/month across all arches on PyPI).

Version 0.14.0

A significant reorganization:

  • Core communication and parsing code in Rust.

  • Polars dataframe support, in addition to pandas.

  • A new, rust-based qs-monitor with improved reliability and a matrix bot with commands.

  • Altair plotting support.

  • Numerous bug fixes and improvements.

  • Python 3.10 is now the minimum supported Python.

Version 0.13.0

  • Add PlateSetup.from_picklist method to generate a PlateSetup from a Kithairon PickList, if Kithairon is installed.

  • Improve ssl support for monitor.

  • Have monitor complain to matrix if it exits unexpectedly.

  • Fix compile_eds when there is no folder to compile (if, eg, something else has already compiled the EDS).

Version 0.12.0

  • Machine.block command to directly control block temperatures.

  • Certificate support for SSL, and new connection recommendations.

  • Stage lines and event spans now are now not plotted if they are outside of the selected time range / stages.

  • Step now supports repeats.

  • Stage.stepped_ramp can now take multiple data points per temperature.

  • Fix hanging connection bug.

Version 0.11.0

  • Initial support for 384-well blocks, at least in data/file reading.

  • Initial support for v2.0 EDS specification machines (eg, QS6Pro), at least in data/file reading.

  • Parsing of multicomponent data for v1 and v2 machines, and partial analysis data for v1 machines.

  • Available data is shown in experiment information.

  • Change license to EUPL-1.2.

  • Fixes for new matplotlib versions.

  • Support for Python 3.12.

Version 0.10.1

  • SSL/non-SSL autoconnection speed improvements

  • Drawer/cover annotation improvements

Version 0.10.0

  • Add annotations to plots for drawer and cover open and close events.

  • Add support for SSL / firmware 1.3.4.

Version 0.9.4

  • Fix multi-temperature plotting bug.

Version 0.9.3

  • Update dependencies, convert to pyproject.toml.

  • Fix cycle selection and direct pandas selection for normalization processes.

Version 0.9.2

  • Fix a communications bug where a packet that can cause commands to hang in certain rare situations.

Version 0.9.1

  • Minor bug fixes and dependency updates (to fix pandas errors).

  • Fixes to support Pandas 2.0.

  • Ensure that some invalid characters are not used in machine names.

  • Check for files with and without spaces on machine when loading a new experiment (in case run was started outside of qslib).

  • Parse IOError messages from the machine.

Version 0.9.0

  • Fix Stage.stepped_ramp when all temperature increments are the same, but temperatures are not.

  • Add a start_increment option to Stage.stepped_ramp for cases where the user does not want the ramp to actually start at the starting temperature, but at the first increment away from it (eg, when continuing a previous ramp).

  • Ensure that units are delta units when appropriate in protocols, regardless of whether the user entered them as delta units (eg, so “2°C” will work as a temperature step).

Version 0.8.2

  • Add check for existing, completed EDS files with same name, and option to Experiment.run to overwrite completed or working files.

  • Fix XML protocol parsing bug for increment units with non-qslib EDS files.

  • Fix stage lines in plots.

  • Improve error messages.

Version 0.8.1

  • Fix bug with BytesIO not being recognized by Experiment.save_file.

Version 0.8.0

  • Ensure that protocols don’t have incorrect stage index and label information when being sent to machine.

  • MachineStatus now includes temperature information, as does the qslib machine-status CLI command.

  • Experiment.sync_from_machine can exclude tiffs, and has better logging.

  • Custom steps are now approximated in xml files, keeping them somewhat compatible with the machine’s android interface.

  • Several testing and documentation improvements.

  • Python 3.11 fixes.

Version 0.7.1

  • QSLib-initiated experiments should now be partially compatible with the machine’s android interface. Status, time, and the (possibly approximate) protocol should be displayed. Data and samples will likely not. Pause/resume/stop/open/close buttons on the interface should function properly.

  • Processor and plotting improvements.

Version 0.7.0

  • Protocol now has Protocol.stage, and Stage now has Stage.step, to provide convenient, 1-indexed access, such that protocol.stage[5] of is stage 5 of protocol, not stage 6.

  • Protocol now supports setting PRERUN and POSTRUN stages, as a series of SCPI commands. This allows the setting of things like idling temperatures and exposure times. It is not easily usable yet, however.

  • Experiment.change_protocol_from_now allows convenient changes to a currently-running experiment.

  • Normalization has been renamed to Processor. Plotting functions can take sequences of processors to process data. These now include:

    • Normalization as before: NormByMeanPerWell, NormByMaxPerWell

    • SubtractMeanPerWell: subtracts the mean of a particular region, applied to each well.

    • SmoothEMWMean: smooths data using Pandas’ ExponentialMovingWindow.mean.

    • SmoothWindowMean: smooths data using Pandas’ Rolling.mean or Window.mean.

  • Some initial implementation changes to allow repeated steps (not stages).

  • Fixes bug that prevented loading of some aborted runs.

  • Fixes monitor’s recording of temperatures.

  • Experiment.all_filters uses data if it exists; Experiment.filter_strings as a convenience function alternative.

  • SCPICommand parsing improvements.

  • Protocol printing improvements.

Version 0.6.3

  • Fixes drawer check bug.

Version 0.6.2

  • Add checks for cover and drawer position after changing positions.

Version 0.6.1

  • Fix pyparsing 3.0.7 whitespace parsing problem (pyparsing/pyparsing#359).

  • Use Hypothesis for some tests.

Version 0.6.0

  • Improved plots, including new Experiment.plot_temperatures.

  • Comments in SCPI commands, allowing save/load of default filters in protocols

  • Licensing switched to AGPL 3.0, CLA in docs.

  • Command comment parsing, also used to store whether steps are using default filters.

  • Example notebook

  • Working parsing of Exposure commands

  • Dependency version fixes

Version 0.5.1

  • CustomStep.collect (and subclasses, including Step) is now CustomStep.collects. The collect parameter for Step can now be None, which will collect data if the step has a filter setting (ie, if you want to collect the default Protocol filters, you need to use collect=True).

  • Stage.stepped_ramp and Stage.hold_for are now safer in requiring some keyword arguments, are documented, and are more flexible.

Version 0.5.0

  • Units throughout protocols, thanks to Pint: you can now use strings like ‘1 hr’ or ‘52 °C’ when defining protocols.

  • Automatic connections throughout Machine and Experiment, by default.

  • Change safe titles from spaces-as-“-” to spaces-as-“_”, consistent with machine.

  • Deprecated paramiko tunnel.

  • Documentation rewrite

  • Implement EDS-file (in-progress and complete) synchronization for monitor.

  • Reorganization of modules: common is no longer needed

Version 0.4.1

  • Allow setting of Experiment.sample_wells.

  • Improve plotting code.

Version 0.4.0

  • Much faster Experiment.sync_from_machine, only transferring additional log entries rather than the entire log.

  • Common plotting routines for fluorescence data.

  • More reliable monitoring.

  • More reliable connections, and testing.

  • Stage.stepped_ramp convenience function.

  • Fixes to bugs inhibiting exposure setting, and some basic implementations for this.

  • Fixes to qs-monitor for cycle counts > 999 (and other large stage / step / cycle counts).

Version 0.3.1

  • CLI improvements.

  • Fix qs-monitor and various functions when run titles have spaces in them.

  • Improve tests and typing.

Version 0.3.0

  • Add qslib CLI, with some basic utility functions.

  • Include calculation using 1.6°c/s ramp (standard mode default) in temperature protocols, initiating from 25°c. This makes experiment temperature data match reasonably well with protocol calculations. It needs to be expanded to handle different ramp rates and run modes, however.

  • Added some tests.

Version 0.2.0

  • Add internal SSH tunnel support, so that this doesn’t need to be set up separately, and can be configured with parameters to Machine.

  • Fix mid-run syncing bugs related to directory creation.

  • Handle some different inputs for Protocol creation.

  • Try to handle spaces in names better; this is still a problem, howver.

Version 0.1.1

Various small improvements and bug fixes.

Version 0.1.0

Initial implementation of full communication (OK/NEXT/ERRor), Experiment files, Machine connection interface. Adaptation of QSConnectionAsync to use new communication. Move of monitor system into qslib.

Version 0.0.0 / etc

Initial version of QSConnectionAsync and other low-level portions to support rawquant and qpcr_data_updater.