Skip to content

Commit

Permalink
Style changes ensemble.py
Browse files Browse the repository at this point in the history
Change style of string representation.
  • Loading branch information
vwiela authored Oct 6, 2023
1 parent e2a052e commit b798418
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pypesto/ensemble/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ def get_percentile_label(percentile: Union[float, int, str]) -> str:
def calculate_cutoff(
result: Result,
percentile: float = 0.95,
cr_option: string = "simultaneous",
cr_option: string = 'simultaneous',
):
"""
Calculate the cutoff of the ensemble.
Expand All @@ -1226,8 +1226,8 @@ def calculate_cutoff(
than 100, the cutoff will be returned as np.inf.
cr_option:
The type of confidence region, which determines the degree of freedom of
the chi^2 distribution for the cutoff value. It can take "simultaneous" or
"pointwise".
the chi^2 distribution for the cutoff value. It can take 'simultaneous' or
'pointwise'.
Returns
-------
Expand All @@ -1246,10 +1246,10 @@ def calculate_cutoff(

# optimal point as base:
fval_opt = result.optimize_result[0].fval
if cr_option == "simultaneous":
if cr_option == 'simultaneous':
# degrees of freedom is equal to the number of parameters
df = result.problem.dim
elif cr_option == "pointwise":
elif cr_option == 'pointwise':
# degrees of freedom is equal to 1
df = 1

Expand Down

0 comments on commit b798418

Please sign in to comment.