Skip to content

feat: ingest new manual water software events - #102

Merged
arjunsridhar12345 merged 7 commits into
devfrom
101-refactor-to-ingest-new-manual-water-software-events
Sep 15, 2026
Merged

arjunsridhar12345 merged 7 commits into
devfrom
101-refactor-to-ingest-new-manual-water-software-events

Conversation

@arjunsridhar12345

@arjunsridhar12345 arjunsridhar12345 commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Attempts to close #101. Label annotations going into acquisition table of NWB are now manual and manual_go_cue_aligned. these can be easily changed. Tested on a sample session Micah ran (don't think this is real data)

Sample qc plot:

image

@micahwoodard micahwoodard left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

Comment thread docs/trials_table_mapping.md Outdated
| `auto` | Free water: the matched trial has `is_auto_reward_right` set. Scheduled autowater and the anti-bias intervention share that channel and are **not** split here — `auto_waterL` / `auto_waterR` and `anti_bias_left_water` / `anti_bias_right_water` record the mechanism per trial. |
| `manual` | The delivery is the closest valve opening to a `GiveManualWater` software event for this port. Takes precedence over the other labels, since manual water is not aligned to a go cue. |
| `manual_go_cue_aligned` | The delivery is the closest valve opening to a `LeftManualAutoReward` / `RightManualAutoReward` software event for this port: water the *experimenter* triggered to land on the go cue. It fires at the go cue like autowater, but the task did not schedule it, so it is neither `auto` nor `earned`. Takes precedence over both trial-derived labels. |
| `manual` | The delivery is the closest valve opening to a `LeftManualWater` / `RightManualWater` software event for this port: experimenter water given at an arbitrary moment, tied to no go cue. Highest precedence of all four. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change "tied to no go cue" to "not tied to a go cue"

@arjunsridhar12345
arjunsridhar12345 changed the base branch from main to dev September 15, 2026 23:16
@arjunsridhar12345
arjunsridhar12345 merged commit f4b2701 into dev Sep 15, 2026
3 checks passed
@arjunsridhar12345
arjunsridhar12345 deleted the 101-refactor-to-ingest-new-manual-water-software-events branch September 15, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor to ingest new manual water software events

3 participants