Conversation
[dev-sandbox](https://github.com/Coen-Lab/dev-sandbox) Co-authored-by: Ryan Shen <zchaxsh@ucl.ac.uk>
Pydantic models, and comment parsers for water delivery and session start/end events.
- typed exceptions - helper posters - add respx to dev dependencies for tests.
- Pydantic session schema exported to JSON - JSON used to generate the UclOpen.Pyrat C# operators. - Includes a README overview.
- Update bonsai environment to load locally built packages - Add simple bonsai workflow to test package functions - `AddComment`, `SetSessionEnd`, `UpdateWaterAmount` operators
- Remove all `_` prefixes - Fix return type errors and `None` types
- Moved test workflow - built with powershell 7 (install independently)
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
glopesdev
reviewed
Apr 14, 2026
Member
glopesdev
left a comment
There was a problem hiding this comment.
Given the database client is named PyRAT we might want to name the package UclOpen.PyRat
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.
Implements the PyRAT / Bonsai integration, allowing lab members to select a subject from the PyRAT colony database, run a Bonsai session, and automatically log water delivery and session events back to PyRAT.
ucl_open.pyratPython package with HTTP client, data models, and session schemaUclOpen.PyratC# Bonsai package withAddComment,UpdateWaterAmount, andSetSessionEndnodessrc/PyRAT_GUI/) for animal selection, Bonsai session launching, and post-session confirmation dialog#sessionstart,#waterdelivery, and#sessionendcomments to PyRAT automaticallydocs/workflows/pyrat/pyrat_test.bonsai)Closes ucl-open/support#11