Skip to content

Commit

Permalink
Better match case.
Browse files Browse the repository at this point in the history
  • Loading branch information
rousseab committed Dec 3, 2024
1 parent 895bbec commit 7919c6e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ def load_sampling_parameters(
], "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":
case "predictor_corrector" | "adaptive_corrector":
sampling_parameters = PredictorCorrectorSamplingParameters(
**sampling_parameter_dictionary
)
Expand Down

0 comments on commit 7919c6e

Please sign in to comment.