Skip to content

Commit

Permalink
0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikbostrom authored Feb 2, 2024
1 parent 3729ab3 commit 2a21ece
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/crepes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
Author: Henrik Boström ([email protected])
Copyright 2023 Henrik Boström
Copyright 2024 Henrik Boström
License: BSD 3 clause
"""

__version__ = "0.6.1"
__version__ = "0.6.2"

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -1020,7 +1020,7 @@ def predict(self, y_hat, sigmas=None, bins=None,
"set to y_max")
y_max_columns = [no_prec_result_cols+len(lower_percentiles)+i
for i in too_high_indexes]
if percentile_indexes == []:
if len(percentile_indexes) == 0:
percentile_indexes = higher_indexes
else:
percentile_indexes = np.concatenate((lower_indexes,
Expand All @@ -1046,7 +1046,7 @@ def predict(self, y_hat, sigmas=None, bins=None,
for i in too_high_indexes])
else:
y_max_columns.append([])
if percentile_indexes == []:
if len(percentile_indexes) == 0:
percentile_indexes = [binned_higher_indexes]
else:
percentile_indexes.append(binned_higher_indexes)
Expand Down
2 changes: 1 addition & 1 deletion src/crepes/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Author: Henrik Boström ([email protected])
Copyright 2023 Henrik Boström
Copyright 2024 Henrik Boström
License: BSD 3 clause
Expand Down

0 comments on commit 2a21ece

Please sign in to comment.