Skip to content

Add subject creation to domain tutorials#793

Closed
ehennestad wants to merge 20 commits intomainfrom
add-subject-creation-to-domain-tutorials
Closed

Add subject creation to domain tutorials#793
ehennestad wants to merge 20 commits intomainfrom
add-subject-creation-to-domain-tutorials

Conversation

@ehennestad
Copy link
Copy Markdown
Collaborator

@ehennestad ehennestad commented Mar 23, 2026

Motivation

Update tutorials to pass NWB Inspector tests

How to test the behavior?

N/A

Checklist

  • Have you ensured the PR description clearly describes the problem and solutions?
  • Have you checked to ensure that there aren't other open or previously closed Pull Requests for the same change?
  • If this PR fixes an issue, is the first line of the PR description fix #XX where XX is the issue number?

Extend the test helper to treat types.untyped.DataPipe like DataStub by calling load() on actualValue before comparing.
Replace the old SKIP_PYNWB_COMPATIBILITY_TEST_FOR_TUTORIALS env var with SKIP_PYNWB_TESTS across tests and nwbtest.m, and update +tests/nwbtest.default.env.
Update CI workflow matrix keys and usage in prepare_release.yml, run_tests.yml, and configurations/matlab_release_matrix_strategy.yml to use the new key (matrix.skip-pynwb-tests) and wire the MATLAB setenv accordingly.
Move conditional installation of pynwb into the workflows (install pynwb only when skip-pynwb-tests == '0') and remove the direct git+ dependency from +tests/requirements.txt (update comment to reflect conditional installs).
Also add TestTags = {'UsesPython'} to PyNWBIOTest.

These changes centralize the CI control of pynwb installation and standardize the skip variable name.
…nore-nwbinspector-subject-checks-in-tutorialtests
checking if this class attribute trips up docs build
Move TestTags to methods blocks. Check if that fixes issue with sphinx build of docs
…nore-nwbinspector-subject-checks-in-tutorialtests
@bendichter
Copy link
Copy Markdown
Contributor

Looks like the auto-generating was using an older version. Aside from that this looks good.

@ehennestad
Copy link
Copy Markdown
Collaborator Author

Looks like the auto-generating was using an older version. Aside from that this looks good.

Fixed

@ehennestad ehennestad requested a review from bendichter March 25, 2026 19:43
@ehennestad ehennestad enabled auto-merge (squash) March 25, 2026 19:46
Add this so that tutorial is aligned with the nwbinspector checks (check_units_resolution_is_set)
bendichter
bendichter previously approved these changes Apr 1, 2026
@ehennestad
Copy link
Copy Markdown
Collaborator Author

Merged via #795

@ehennestad ehennestad closed this Apr 1, 2026
auto-merge was automatically disabled April 1, 2026 14:07

Pull request was closed

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.50%. Comparing base (4e44a36) to head (a7a648a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #793   +/-   ##
=======================================
  Coverage   95.50%   95.50%           
=======================================
  Files         191      191           
  Lines        6961     6961           
=======================================
  Hits         6648     6648           
  Misses        313      313           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants