-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3729ab3
commit 2a21ece
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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, | ||
|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
Author: Henrik Boström ([email protected]) | ||
Copyright 2023 Henrik Boström | ||
Copyright 2024 Henrik Boström | ||
License: BSD 3 clause | ||
|