From b760cfd942e867e72d920816c2ef62c3bfd8b30f Mon Sep 17 00:00:00 2001 From: Doresic Date: Fri, 6 Oct 2023 14:19:24 +0200 Subject: [PATCH] Fix string name & black --- pypesto/ensemble/ensemble.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pypesto/ensemble/ensemble.py b/pypesto/ensemble/ensemble.py index 2d36569b5..6818267ab 100644 --- a/pypesto/ensemble/ensemble.py +++ b/pypesto/ensemble/ensemble.py @@ -1205,9 +1205,9 @@ def get_percentile_label(percentile: Union[float, int, str]) -> str: def calculate_cutoff( - result: Result, + result: Result, percentile: float = 0.95, - cr_option: string = 'simultaneous', + cr_option: str = 'simultaneous', ): """ Calculate the cutoff of the ensemble. @@ -1240,8 +1240,7 @@ def calculate_cutoff( ) if cr_option not in ["simultaneous", "pointwise"]: raise ValueError( - f"Confidence region must be either simultaneous " - f"or pointwise." + "Confidence region must be either simultaneous or pointwise." ) # optimal point as base: