Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #2156 +/- ##
==========================================
+ Coverage 95.10% 95.18% +0.07%
==========================================
Files 29 30 +1
Lines 2943 2991 +48
Branches 443 444 +1
==========================================
+ Hits 2799 2847 +48
Misses 86 86
Partials 58 58
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
|
After discussion with @oruebel and @bendichter , we decided to not deprecate the "instantaneous" value for |
Updated the docstring to clarify that timestamps are in seconds from the session start time and removed the default description.
Remove default description from DurationVectorData and update tests to always provide description, encouraging users to document their data. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…Events/AnnotationSeries deprecation Bump nwb-schema submodule to nwbep001 (78af15e), which restores "instantaneous" as a valid TimeSeries.continuity value and recommends EventsTable instead. Switch BehavioralEvents and AnnotationSeries deprecations to warn on new instances and pass silently during read, via a new _warn_on_new_pass_on_construct helper. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace TODO placeholders with runnable EventsTable snippets: reward delivery events (with a custom amount column) in plot_behavior.py and video-scored behaviors (using the built-in duration and annotation columns) in plot_file.py. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ies to PR #2156 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…n doc Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pass meanings_tables (added in HDMF 5.1.0) through the docval of every DynamicTable subclass that already forwarded target_tables, so users can attach a MeaningsTable when constructing these tables. SweepTable is skipped because it is deprecated. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds export-roundtrip and file validation coverage via the standard testing mixin. Edge-case tests remain as plain TestCase methods. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… CHANGELOG to 4.0.0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Migration from ndx-events will be addressed in a separate PR. |
Bump nwb-schema submodule to d69eba1 and mirror the new doc wording on the Python side. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| ) | ||
| behavior_events.add_event(timestamp=10.2, duration=1.4, annotation="grooming") | ||
| behavior_events.add_event(timestamp=18.7, duration=0.6, annotation="rearing") | ||
| behavior_events.add_event(timestamp=25.0, duration=2.1, annotation="grooming") |
There was a problem hiding this comment.
This can be a separate issue, but this seems like a great place to also introduce a Meanings table to define what "grooming" and "rearing" means.
oruebel
left a comment
There was a problem hiding this comment.
Overall, the PR looks good to me.
It looks like this PR also introduces MeaningsTable to PyNWB. While MeaningsTable is really an addition in HDMF, updating the nwb-schema also ends up exposing that change in NWB. For this it would be useful to:
- Mention important changes (e.g., MeaningsTable) that have propagated from HDMF into the NWB schema also in the CHANGELOG (or at the very least point to where those additional changes are described)
- Include MeaningsTable also in the tutorials in PyNWB. EventsTable seems like a great example use-case for MeaningsTable
Motivation
How to test the behavior?
Checklist
ruff check . && codespellfrom the source directory.