Skip to content

Conversation

@rly
Copy link
Contributor

@rly rly commented Jan 7, 2026

TODO:

  • Add tests
  • Target 5.0 branch

How to test the behavior?

Run tests and pynwb tests

Checklist

  • Did you update CHANGELOG.md with your changes?
  • Does the PR clearly describe the problem and the solution?
  • Have you reviewed our Contributing Guide?
  • Does the PR use "Fix #XXX" notation to tell GitHub to close the relevant issue numbered XXX when the PR is merged?

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

❌ Patch coverage is 90.41096% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.86%. Comparing base (cdaff8c) to head (6cf15de).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
src/hdmf/build/manager.py 89.06% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1372      +/-   ##
==========================================
- Coverage   92.90%   92.86%   -0.05%     
==========================================
  Files          41       41              
  Lines        9909     9919      +10     
  Branches     2024     2027       +3     
==========================================
+ Hits         9206     9211       +5     
- Misses        431      433       +2     
- Partials      272      275       +3     

☔ 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.

@rly rly modified the milestone: 5.0 Feb 6, 2026
@rly rly marked this pull request as ready for review February 8, 2026 17:31
@rly rly requested a review from oruebel February 8, 2026 17:31
Comment on lines +465 to +469
warnings.warn(
"copy_mappers is deprecated and will be removed in a future version. "
"Use merge instead with the argument ns_catalog=False to copy only mappers without namespaces.",
DeprecationWarning,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since copy_mappers is probably only used internally, I think it would be Ok to remove it with the upcoming major release. Up to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought so too, but it was used by pynwb, and it doesn't really hurt to do this a little gradually just in case.

oruebel
oruebel previously approved these changes Feb 8, 2026
@rly rly enabled auto-merge (squash) February 9, 2026 01:07
@rly rly requested a review from oruebel February 9, 2026 01:07
@rly rly merged commit 42f7311 into dev Feb 9, 2026
28 checks passed
@rly rly deleted the refactor_load_namespaces branch February 9, 2026 01:35
@rly rly mentioned this pull request Feb 9, 2026
rly added a commit that referenced this pull request Feb 9, 2026
* Refactor load_namespaces to return source types and fix registration issue

* Update test, comment

* Add tests

* Update tests

* Update changelog

* Deprecate TypeMap.copy_mappers

* Update changelog

* Fix RST issues

* Fix RST

* Don't change return type of load_namespaces

* Apply suggestions from code review

* Add missing tests

* Refactor and clarify check when getting container cls and no ns
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.

DynamicTableRegion written with hdmf_experimental instead of hdmf_common when using NWB extensions

2 participants