-
Notifications
You must be signed in to change notification settings - Fork 27
Refactor load_namespaces to return source types, fix registration #1372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
| 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, | ||
| ) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
* 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
load_namespaces(from TypeMap, NamespaceCatalog, and the IO classes) to fixDynamicTableRegionwritten withhdmf_experimentalinstead ofhdmf_commonwhen using NWB extensions #1347 and improve the code structure for clarity and utility. This change will target HDMF 5.0 and needs to be rebased.TODO:
How to test the behavior?
Checklist
CHANGELOG.mdwith your changes?