Skip to content

Commit

Permalink
Fix string name & black
Browse files Browse the repository at this point in the history
  • Loading branch information
Doresic committed Oct 6, 2023
1 parent b798418 commit b760cfd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pypesto/ensemble/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b760cfd

Please sign in to comment.