Add prototype Marimo notebook for Batch processing notebook #235
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.
This pull request introduces a new batch processing notebook for Bragg Edge fitting using the
marimo
framework.The notebook guides the user through loading configurations, selecting folders for batch processing, verifying parameters, and running the batch processing.
Key changes include:
Introduction of the
marimo
framework:notebooks/batch_bragg_edge_fitting.py
: Added import statements formarimo
and initialized themarimo
app.Configuration loading and processing:
notebooks/batch_bragg_edge_fitting.py
: Implemented cells to load and display the base configuration from a JSON file, and process it into anIBeatlesUserConfig
object.Folder selection for batch processing:
notebooks/batch_bragg_edge_fitting.py
: Added cells to allow users to select multiple folders for batch processing and create a list ofIBeatlesUserConfig
objects for each sample.Parameter verification:
notebooks/batch_bragg_edge_fitting.py
: Implemented cells to visualize the configuration parameters as tabs of accordions for user verification.Batch processing execution:
notebooks/batch_bragg_edge_fitting.py
: Added cells to run the batch processing, display progress, and capture standard error output for each sample.Testing instructions
marimo
withpip install marimo
in the development environmentmarimo edit notebooks/batch_bragg_edge_fitting.py
marimo run notebooks/batch_bragg_edge_fitting.py