Skip to content

Conversation

@ehennestad
Copy link
Collaborator

@ehennestad ehennestad commented Sep 2, 2025

Fix #672

Depends on

Motivation

Simplify introduction tutorial and make it follow a story line instead of demonstrating the use of types in a more disconnected manner.

PR Changes

  • General updating of structure to follow imaginary experiment
  • Update class diagrams to reflect MatNWB property names
  • Fix issue 672 - added all neurodata types to the file
  • Removed Class diagram in Trials section. It is not discussed and too advanced for intro tutorial?

How to test the behavior?

Show here how to reproduce the new behavior (can be a bug fix or a new feature)

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?

ehennestad added 30 commits July 5, 2025 22:07
- Removed unused / commented out code
- Removed stale code
- Refactored blocks into separate local functions
- Updated dependent html scripts
Ensure generated classes are from latest schema version when running each tutorial
Fix issue where NWB types are added in the base workspace when running livescripts, creating potential schema version conflicts if exporting multiple livescripts in one go that uses different schema versions
Added function disclaimer / warning
Allow scrolling in code blocks
Add javascript to keep the button pinned to upper right corner
Removed unnecessary listener
@ehennestad ehennestad marked this pull request as draft September 2, 2025 20:07
@codecov
Copy link

codecov bot commented Sep 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.59%. Comparing base (6cb513a) to head (6040b78).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #749   +/-   ##
=======================================
  Coverage   95.59%   95.59%           
=======================================
  Files         184      184           
  Lines        6443     6443           
=======================================
  Hits         6159     6159           
  Misses        284      284           

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

@ehennestad ehennestad changed the title Update intro tutorial Documentation: Update intro tutorial Sep 2, 2025
% |*TimeSeries*|> object.

% Synthetic 2-D trajectory (helper returns a 2×300 array)
data = matnwb.tutorial.intro.getRandomTrajectory();
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather not create functions for this. I think it might be hard for people to understand what is going on

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, maybe you are right. But using random vectors on the other hand feels rushed and generic.


trials = types.core.TimeIntervals( ...
'colnames', {'start_time', 'stop_time', 'correct'}, ...
'colnames', {'start_time', 'stop_time', 'time_to_find'}, ...
Copy link
Contributor

Choose a reason for hiding this comment

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

why change the column here? I thought it was useful to show how to store boolean values

Copy link
Collaborator Author

@ehennestad ehennestad Sep 3, 2025

Choose a reason for hiding this comment

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

I wanted to make the tutorial more cohesive by following a simple imaginary experiment throughout. The current version feels a bit disjoint.

If showing logical values is useful, it should be demonstrated more explicitly. I did not realise that showing the use of booleans was a goal here.

Copy link
Contributor

Choose a reason for hiding this comment

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

could we add a boolean value back to demonstrate adding different data types?

Copy link
Contributor

Choose a reason for hiding this comment

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

could we add a boolean value back to demonstrate adding different data types?

@ehennestad ehennestad closed this Nov 4, 2025
@ehennestad ehennestad reopened this Nov 4, 2025
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.

[Documentation]: In basics tutorial, many of the data types are not added to the NWB file

3 participants