Skip to content

Unit overhaul 5/5: Update tutorials for the new unit API#225

Merged
henrikjacobsenfys merged 1 commit into
split/02c-unit-renamefrom
split/03-notebooks
Jul 6, 2026
Merged

Unit overhaul 5/5: Update tutorials for the new unit API#225
henrikjacobsenfys merged 1 commit into
split/02c-unit-renamefrom
split/03-notebooks

Conversation

@henrikjacobsenfys

Copy link
Copy Markdown
Member

Update the tutorial notebooks and their generated data for the new unit API (x_unit/y_unit, scipp Variable Q, and the verify_Q_index behavior) introduced in the preceding PRs in this stack. Touches only docs/docs/tutorials/ (20 notebooks + regenerated fake-data HDF5 files).


Stack — splitting the monolithic "Unit system overhaul" (#217) into a reviewable series. Merge bottom-up:

  1. ① Add unit-conversion utilities and FitTarget → develop
  2. ② Centralize Q-index validation via verify_Q_indexsplit/01-unit-utils
  3. ③ Store Q as a scipp Variable in 1/angstrom → split/02a-verify-q-index
  4. ④ Separate model unit into x_unit/y_unitsplit/02b-q-variable
  5. ⑤ Update tutorials for the new unit APIsplit/02c-unit-rename (this PR)

🤖 Generated with Claude Code

Regenerate the tutorial and performance-test notebooks and their example
data files (fake_simple_data.hdf5, fake_advanced_data.hdf5) to reflect the
new x_unit/y_unit API and scipp-backed Q from the unit-system overhaul.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@henrikjacobsenfys henrikjacobsenfys added [scope] enhancement Adds/improves features (major.MINOR.patch) [priority] medium Normal/default priority labels Jul 6, 2026
@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.48%. Comparing base (b954021) to head (3bae91e).
⚠️ Report is 1 commits behind head on split/02c-unit-rename.

Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                   @@
##           split/02c-unit-rename     #225   +/-   ##
======================================================
  Coverage                  98.48%   98.48%           
======================================================
  Files                         53       53           
  Lines                       4037     4037           
  Branches                     697      697           
======================================================
  Hits                        3976     3976           
  Misses                        33       33           
  Partials                      28       28           
Flag Coverage Δ
unittests 98.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@henrikjacobsenfys henrikjacobsenfys merged commit 3bae91e into split/02c-unit-rename Jul 6, 2026
27 of 29 checks passed
@henrikjacobsenfys

Copy link
Copy Markdown
Member Author

Note: GitHub auto-marked this merged because its commit was fast-forwarded into the base branch (split/02c-unit-rename). The tutorial updates are not on develop yet — they now ship as part of #224, since the notebooks fail until the new unit API is in place and can't be validated separately. Tracking there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] medium Normal/default priority [scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant