Repository navigation
Module C notebooks: plots with errors, saving with DataToExportSaver - #17
Merged
Merged
Conversation
Notebook 01: the cropped line with its errors in the PyMoDAQ viewer (the Viewer1D turns its Errors action on when the data has errors). Notebook 03: the averaged scan with error bars and the weighted fit (matplotlib errorbar), and the spectrum with Naverage = 200 and its errors in the PyMoDAQ viewer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKuN833EwRkwYgUKwN8sKq
Both savers take the path of the file and create the H5SaverLowLevel themselves; used as context managers with new_file=True they overwrite an existing file and close it at the end. No more H5SaverLowLevel, init_file, add_det_group nor unlink in the notebook; a new part saves one data alone with DataSaverLoader. Co-Authored-By: Claude Opus 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/01_data_objects.ipynb, part 8: plot the cropped line with its errors in the PyMoDAQ viewer (display cell). The qt plotter turns theErrorsaction of theViewer1Don when the data has errors: the errors show as a band.notebooks/03_analysis.ipynb, part 6: the averaged scan with error bars (yerrfromwindow.errors) and the weighted fit, with matplotlib. Part 8: the spectrum with Naverage = 200 and its errors in the PyMoDAQ viewer.notebooks/02_saving_loading.ipynb: save withDataToExportSaver(path, new_file=True)used as a context manager (it creates theH5SaverLowLevelitself and closes the file), no moreH5SaverLowLevel/init_file/add_det_group/unlink; new part 2 bis: one data alone withDataSaverLoader.correction-module-c..plot('matplotlib')is not used: with errors it raisesTypeError: can only concatenate tuple (not "list") to tupleinpymodaq_data/plotting/plotter/plotters/matplotlib_plotters.py(PLOT_COLORS[ind_data] + [0.3], the colors are tuples), PyMoDAQ 5.3.11.Checks
pytest tests/test_notebooks_exercises_module_c.py: 10 passed.https://claude.ai/code/session_01RKuN833EwRkwYgUKwN8sKq
Generated by Claude Code