Repository navigation
Install restart fix (#206), animal assignment (#215), launch shortcut (#216) - #214
Merged
Merged
Conversation
…all task (#206) Opened inside the asyncio task, the result dialogs' nested event loop made qasync raise "Cannot enter into task", and Restart's close() left shutdown waiting out its 10 s timeout. The task now only installs; the follow-up runs on the next turn of the Qt loop.
An Animal picker in the run header (desktop and Pi) and the multi-camera window sets the session's active subject, which the data recorder and the tracking logger already write into their CSV headers. Multi-camera runs are video only, so there the animal's ID also joins the file prefix.
…nu (#216) Creates ~/Applications/GLIDER.app on macOS, a Start Menu shortcut on Windows and a .desktop entry on Linux, each launching the interpreter it was run from. install.sh and install.ps1 run it (not on the Pi, whose image ships its own launcher).
Windows' wider fonts put the Pi window 3 px over 480 with the Animal caption beside the picker; the Pi now shows the picker alone. The shortcut test only checks the launcher's executable bit on POSIX.
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.
Follow-up to #213: a fix to its Install button, plus the two new issues.
Closes #215
Closes #216
Install button restart hang (#206 follow-up)
Pressing Install on an Analyze card and then Restart logged
RuntimeError: Cannot enter into task … while another task is being executed, and shutdown sat out its 10 s timeout.close()from inside that task, socloseEvent's drain-and-shutdown task could not run.close()run in_after_install_extra, scheduled withQTimer.singleShot(0, …)so they run outside any asyncio task.#215 Animal assignment
A new
AnimalPickerlists Experiment > Animals and is bound to the session'sactive_subject_id.touch.qss, because a 42 px touch combo pushed the run page past 800×480.retrieval_D07_…).#216 Easier launching
New
glider shortcutcommand:~/Applications/GLIDER.appGLIDER.lnk, run withpythonwso no console window opens~/.local/share/applications/glider.desktopinstall.shandinstall.ps1run it (not on the Pi, whose image ships its own). Existing installs can runuv run glider shortcutonce.Testing
QT_QPA_PLATFORM=offscreen uv run --no-sync pytest -q -m "not slow"gives 6682 passed, 4 skipped, 7 deselected.ruff checkandblack --checkare clean onsrc tests plugins tools.GLIDER.appwithopen; GLIDER started from it.