Skip to content

docs: add markdown documentation#13

Merged
arjunsridhar12345 merged 8 commits into
devfrom
document-trials-nwb-markdown
Jun 10, 2026
Merged

docs: add markdown documentation#13
arjunsridhar12345 merged 8 commits into
devfrom
document-trials-nwb-markdown

Conversation

@arjunsridhar12345

@arjunsridhar12345 arjunsridhar12345 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

This PR attempts to add initial markdown files from documentation in the issues below. Currently is in the docs top level folder. Any updates can then be version controlled with these files:

UPDATE: I also decided to lump in a qc markdown as well: #14

@arjunsridhar12345 arjunsridhar12345 marked this pull request as ready for review June 5, 2026 22:00
Comment thread docs/trials_table_mapping.md Outdated
| Trials column | Mapping |
| --- | --- |
| `auto_waterL` / `auto_waterR` | From `is_auto_response_right`. `NULL` for None, `true` for right, `false` for left. Encoded `0`/`1`. |
| `bait_left` / `bait_right` | Boolean. `bait_right` is `True` if `p_reward_right == 1` and `auto_response_right` is `None` or `False`. `bait_left` is `True` if `p_reward_left == 1` and `auto_response_right` is `None` or `True`. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

bait_left/bait_right both depend on auto_response_right. Is that the intended behavior or a typo?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

should be the intended behavior. there is a typo in the column name as called out in the next comment. I tried to add some information here, saying that the value it takes on determines left or right: d645c2e


| Trials column | Mapping |
| --- | --- |
| `auto_waterL` / `auto_waterR` | From `is_auto_response_right`. `NULL` for None, `true` for right, `false` for left. Encoded `0`/`1`. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In the next line, you refer to a variable called auto_response_right. here you refer to is_auto_response_right. Are these two different variables or is one of the names incorrect?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

great catch! is_auto_response_right is the correct one. These are the same, it's a typo. Tried to address here: d645c2e

| `bait_left` / `bait_right` | Boolean. `bait_right` is `True` if `p_reward_right == 1` and `auto_response_right` is `None` or `False`. `bait_left` is `True` if `p_reward_left == 1` and `auto_response_right` is `None` or `True`. |
| `response_duration` | `response_deadline_duration`. |
| `reward_consumption_duration` | `Trial -> reward_consumption_duration`. |
| `reward_probabilityL` / `reward_probabilityR` | Most likely the block probability: `Trial -> Metadata -> p_reward_left` / `p_reward_right`. Confirm with Alex whether the actual lickspout probability is intended. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you clean up the "Confirm with Alex whether the actual lickspout probability is intended." by getting that info from @alexpiet prior to merging this PR?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I added Alex as a reviewer. I think we may have talked about this already and I forgot to write it down. But from discussing with Micah, I think she said it is the probability within the block if I am understanding and remembering right

| `right_valve_open_time` | `SupplyPort1`. |

Cross-correlate with software-event manual-reward times from the UI against
trial `start_time`/`stop_time` to disambiguate manual valve opens. Double-check

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What does your "Double-check this" note here mean? Can you confirm before commiting this file?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added Alex as reviewer for this. I think from meeting with Micah, this is asking if manual valve openings need to be kept track of as well

Comment thread docs/qc_upgrade_plan.md Outdated
`default_grouping`:

```python
default_grouping = ["test_suite", [<every suite name seen in the metrics>]]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could you be a bit clearer about what this "default_grouping" is for and what it accomplishes? How does it interact with what you say below on lines 191-192 about 'behavior' sitting in its own top level group?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Tried to address here: b581220.

It's for mainly organizing the visualization of the metrics and trying to group them into a tree like hierarchy in the portal

@dougollerenshaw dougollerenshaw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved, but please address inline comments first.

@arjunsridhar12345

arjunsridhar12345 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

merging this to dev, will check with Micah when she's back next week and will open any issues then as they arise

@arjunsridhar12345 arjunsridhar12345 merged commit cad8de8 into dev Jun 10, 2026
3 checks passed
@arjunsridhar12345 arjunsridhar12345 deleted the document-trials-nwb-markdown branch June 10, 2026 01:52
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.

3 participants