-
Notifications
You must be signed in to change notification settings - Fork 31
improve conversion gallery documentation for CsvTimeIntervalsInterface
#1572
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR enhances the CSV/Excel TimeIntervals interface with comprehensive documentation improvements and a fix for in-memory access to trials and epochs. The changes improve user experience by providing detailed tutorial-style examples and fixing a gap in how TimeIntervals data is accessed before file save/load.
- Enhanced documentation with detailed CSV format requirements, examples, and usage patterns
- Fixed in-memory access to
nwbfile.trialsandnwbfile.epochsby setting direct properties - Improved docstrings for
TimeIntervalsInterface.add_to_nwbfile()andconvert_df_to_time_intervals()
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/neuroconv/tools/text.py | Expanded docstring for convert_df_to_time_intervals() with comprehensive parameter descriptions, examples, and notes |
| src/neuroconv/datainterfaces/text/timeintervalsinterface.py | Improved docstrings and added direct property assignment for trials/epochs to enable in-memory access |
| docs/conversion_examples_gallery/text/csv.rst | Major documentation enhancement with CSV format requirements, multiple usage examples, and customization options |
| CHANGELOG.md | Added changelog entry describing the improvements |
CsvTimeIntervalsInterface
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1572 +/- ##
=======================================
Coverage 88.27% 88.27%
=======================================
Files 156 156
Lines 10695 10747 +52
=======================================
+ Hits 9441 9487 +46
- Misses 1254 1260 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
During a conversation with Matthew A. Smith, I suggested that the simplest path for converting MATLAB trial data to NWB is to export to CSV and use the
CsvTimeIntervalsInterfaceinterface.I took a look a the conversion gallery and realize that the current documentation doesn't adequately explain the expected CSV format or how to customize the conversion. This PR improves the conversion gallery by clarifying the input format and demonstrating the available conversion options.
The new how-to documentation:
https://neuroconv--1572.org.readthedocs.build/en/1572/conversion_examples_gallery/text/csv.html