Skip to content

Commit

Permalink
Fix match case.
Browse files Browse the repository at this point in the history
  • Loading branch information
rousseab committed Dec 3, 2024
1 parent 2f6bbb3 commit 895bbec
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,19 @@ def load_sampling_parameters(
assert algorithm in [
"ode",
"sde",
"adaptive_corrector",
"predictor_corrector",
], "Unknown algorithm. Possible choices are 'ode', 'sde' and 'predictor_corrector'"
], "Unknown algorithm. Possible choices are 'ode', 'sde', 'predictor_corrector' and 'adaptive_corrector'"

match algorithm:
case "predictor_corrector":
sampling_parameters = PredictorCorrectorSamplingParameters(
**sampling_parameter_dictionary
)
case "adaptive_corrector":
sampling_parameters = PredictorCorrectorSamplingParameters(
**sampling_parameter_dictionary
)
case "ode":
sampling_parameters = ODESamplingParameters(**sampling_parameter_dictionary)
case "sde":
Expand Down

0 comments on commit 895bbec

Please sign in to comment.