Repository navigation
fix(fluidics): update the fluidics library to Squid-Fluidics main (fluidics saves work on Windows) - #869
Open
hongquanli wants to merge 2 commits into
Open
fix(fluidics): update the fluidics library to Squid-Fluidics main (fluidics saves work on Windows)#869hongquanli wants to merge 2 commits into
hongquanli wants to merge 2 commits into
Conversation
…uidics saves work on Windows) Moves the software/fluidics_v2 submodule from 020040cb to 5b3dc750, the head of Squid-Fluidics main. That brings in three upstream PRs: - Cephla-Lab/Squid-Fluidics#58: atomic_write calls os.fchmod on POSIX only. Windows has no os.fchmod before Python 3.13, so on a Windows rig every save through the library raised AttributeError: configs, sequences and run reports. In Squid the report writer thread logged "Uncaught Exception!" at the end of every fluidics step, and no run report was ever saved. - Cephla-Lab/Squid-Fluidics#61: the valve driver gives up on a dead I2C bus instead of hanging the MCU. Firmware only. - Cephla-Lab/Squid-Fluidics#63: a set_temperature step takes an optional `wait` (default true). Squid hands fluidics rows to the library as plain dicts, so the field reaches its validation, time estimate and run unchanged. No Squid code changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ckbox
The library update brings set_temperature's optional `wait` (a bool,
default true). The Protocol tab's row editor made a number box for every
field that is not a string or a float, so `wait` read "1", stored 0 or 1,
and any other number made the row invalid ("wait: Input should be a
valid boolean") until it was corrected.
A field the library's model types as bool now gets a checkbox, ticked
from the row's value or the model's default, and an edit stores
True/False. A row without the field shows it ticked and stores nothing
until the box is changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 34 minutes. View limit details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the
software/fluidics_v2submodule from020040cbto5b3dc750, the head of Squid-Fluidicsmain. The reason is the Windows save fix; two other upstream changes come with it.What it brings in
atomic_writecalledos.fchmod, which Windows lacks before Python 3.13.AttributeError: configs, sequences and run reports.Uncaught Exception!at the end of every fluidics step, and no run report was ever saved.os.fchmodis now called on POSIX only.set_temperaturestep can be told not to wait (Cephla-Lab/Squid-Fluidics#63).wait, defaulttrue, so existing protocols run as before.wait: falsethe step sets the target, switches the TEC output on and moves on.Compatibility with Squid
Squid keeps fluidics rows as plain dicts and hands them to the library unchanged (
strip_for_librarydrops only imaging rows). Sowaitreaches the library's validation,plan()(the time estimate) andrun()as written.Checked through Squid's
LibraryFluidicsPort: aset_temperaturerow plans at 60 s, and at 0 s withwait: false.Squid change
The Protocol tab's row editor now shows a yes/no field such as
waitas a checkbox. Before, it was a number box that read1and accepted any number.wait: false.Tests
The fluidics-related tests were run with the submodule checked out and the library importable, as CI does with
pip install --no-deps -e fluidics_v2/software:tests/control/core/fluidics_protocol/tests/control/widgets_fluidics/tests/control/test_fluidics_system.pytests/control/models/test_fluidics_protocol.pytests/control/models/test_fluidics_run.pytests/control/test_microscope.pytests/control/test_theme_conversion.pyLibrary bump alone, on macOS:
020040cb)5b3dc750)The one failure is the same at both pins:
test_a_tall_window_shows_the_whole_instrument_blockopens a window taller than the local screen allows. Under Qt's offscreen platform it passes.The editor change adds two tests in
test_protocol_tab.py. Both failed before the change:waitcheckbox that storesfalsewhen unticked and keeps the row valid;waitthat shows it ticked and stores nothing until changed.With the change,
tests/control/widgets_fluidics/passes in full under the offscreen platform: 79 passed on PyQt5 and 79 on PyQt6.Also run in the simulated GUI (PyQt6):
set_temperaturestep withwait: falseran tofinished.waitcheckbox storedwait: false, and the row stayed valid.Not verified
🤖 Generated with Claude Code