Add 'type' field to ExperimentParametersModel

This commit introduces a new 'type' field in the ExperimentParametersModel schema and updates the associated code in `sample.py` to include this field during object creation. Additionally, unnecessary lines and redundant code in `testfunctions.ipynb` have been removed for better readability and maintainability.
This commit is contained in:
GotthardG
2025-04-29 23:17:53 +02:00
parent 57de665c7b
commit 58dcaf892f
5 changed files with 48 additions and 48 deletions

View File

@ -334,6 +334,7 @@ def create_experiment_parameters_for_sample(
# stored as JSON.
new_exp = ExperimentParametersModel(
run_number=new_run_number,
type=exp_params.type,
beamline_parameters=exp_params.beamline_parameters.dict()
if exp_params.beamline_parameters
else None,