Repository navigation
Module C notebooks: DataLoader as a context manager, Continuous Save button - #19
Merged
Merged
Conversation
…Save button DataLoader closes the file when leaving the with block, so the notebooks no longer call close_file by hand. The recording of the DAQ_Viewer is made with the Continuous Save button of its toolbar (there is no do_save setting to tick any more). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKuN833EwRkwYgUKwN8sKq
seb5g
pushed a commit
that referenced
this pull request
Nov 18, 2026
… Continuous Save button Same cells as the notebooks with holes of main (PR #19), filled. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKuN833EwRkwYgUKwN8sKq
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKuN833EwRkwYgUKwN8sKq
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKuN833EwRkwYgUKwN8sKq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
notebooks/02_saving_loading.ipynb,03_analysis.ipynb:DataLoaderis used as a context manager (with DataLoader(path) as loader:,__enter__/__exit__ofDataLoaderclose the file), no moreloader.close_file(). The holes follow the same shape, for instancewith ... as loader: # (hint: DataLoader ...; the file is closed at the end of the block).02_saving_loading.ipynb, part 3: the recording of the DAQ_Viewer is made with the Continuous Save button of its toolbar (nodo_savesetting any more).DataWithAxes.mean_with_errors(0)replaces the hand-madestd(axis=0, ddof=1)in 02 (part 4) and 03 (parts 6 and 9): the standard error of the mean goes directly inerrors.correction-module-cget the same cells, filled.Checks
pytest tests/test_notebooks_exercises_module_c.py: 10 passed.Generated by Claude Code