Skip to content

Conversation

@CodyCBakerPhD
Copy link
Collaborator

@CodyCBakerPhD CodyCBakerPhD commented Jan 23, 2026

Initial draft created with the help of Claude

Needs significant reduction and cleanup

* Initial plan

* Add conversion gallery documentation with NWB to BIDS mapping examples

Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com>

* Fix conversion gallery assertions and improve metadata descriptions

Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: CodyCBakerPhD <51133164+CodyCBakerPhD@users.noreply.github.com>
@CodyCBakerPhD CodyCBakerPhD self-assigned this Jan 23, 2026
@CodyCBakerPhD CodyCBakerPhD added the documentation Changes only affect the documentation label Jan 23, 2026
@CodyCBakerPhD CodyCBakerPhD changed the title Add conversion gallery documentation for NWB to BIDS mapping (#286) Added conversion gallery showcasing NWB to BIDS field mappings Jan 23, 2026
@codecov
Copy link

codecov bot commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.57%. Comparing base (6529fe9) to head (99bc7de).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #288      +/-   ##
==========================================
- Coverage   84.75%   84.57%   -0.18%     
==========================================
  Files          38       38              
  Lines        1456     1465       +9     
==========================================
+ Hits         1234     1239       +5     
- Misses        222      226       +4     
Flag Coverage Δ
unittests 84.57% <ø> (-0.18%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/nwb2bids/bids_models/_participant.py 92.30% <ø> (-1.81%) ⬇️
src/nwb2bids/testing/_mocks/_tutorials.py 73.84% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +191 to +195
# TODO: fix this

.. code-block:: json

{}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm thinking I'll fix all these at once in a follow-up if you're OK with that

Comment on lines +92 to +102
.. literalinclude:: ./expected_files/sub-001_sessions.tsv
:language: text

.. invisible-code-block: python

test_sessions_tsv_path = bids_directory / "sub-001" / "sub-001_sessions.tsv"
expected_sessions_tsv_path = expected_files / "sub-001_sessions.tsv"

test_bytes = test_sessions_tsv_path.read_bytes()
expected_bytes = expected_sessions_tsv_path.read_bytes()
assert test_bytes == expected_bytes
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm thinking this could be a good pattern for testing the tree structure perhaps? (would need custom parser for special branch symbols)

Copy link
Member

Choose a reason for hiding this comment

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

seems reasonable. maybe we need to document how to regenerate the expected_files if things change though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

'Copy and paste from your nwb2bids_tutorial/ecephys_tutorial_file/bids_dataset_py_1 directory' lol

@CodyCBakerPhD CodyCBakerPhD requested a review from asmacdo January 27, 2026 12:49
@CodyCBakerPhD CodyCBakerPhD marked this pull request as ready for review January 27, 2026 12:49
@CodyCBakerPhD
Copy link
Collaborator Author

@asmacdo Ready for review finally

@CodyCBakerPhD CodyCBakerPhD linked an issue Jan 27, 2026 that may be closed by this pull request
@github-project-automation github-project-automation bot moved this to In Progress in nwb2bids Roadmap Jan 27, 2026
CodyCBakerPhD and others added 3 commits January 27, 2026 13:12
Co-authored-by: Austin Macdonald <austin@dartmouth.edu>
Co-authored-by: Austin Macdonald <austin@dartmouth.edu>
@CodyCBakerPhD CodyCBakerPhD requested a review from asmacdo January 27, 2026 18:17
Co-authored-by: Austin Macdonald <austin@dartmouth.edu>
Copy link
Member

@asmacdo asmacdo left a comment

Choose a reason for hiding this comment

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

s/specifies/specified then good to go!

@CodyCBakerPhD CodyCBakerPhD merged commit f0fb725 into main Jan 28, 2026
50 checks passed
@CodyCBakerPhD CodyCBakerPhD deleted the conversion_gallery branch January 28, 2026 00:19
@github-project-automation github-project-automation bot moved this from In Progress to Done in nwb2bids Roadmap Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Changes only affect the documentation

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add conversion gallery

3 participants