Skip to content

Commit a021637

Browse files
committed
Fix a small bugs
1 parent f49e23f commit a021637

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ If you use Riskfolio-Lib for published work, please use the following BibTeX ent
262262
```
263263
@misc{riskfolio,
264264
author = {Dany Cajas},
265-
title = {Riskfolio-Lib (6.2.1)},
265+
title = {Riskfolio-Lib (6.2.2)},
266266
year = {2024},
267267
url = {https://github.com/dcajasn/Riskfolio-Lib},
268268
}

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
copyright = '2020-2024, Dany Cajas'
2626
author = 'Dany Cajas'
2727

28-
__version__ = "6.2.1"
28+
__version__ = "6.2.2"
2929

3030
# The short X.Y version
3131
version = '.'.join(__version__.split('.')[:2])

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ If you use Riskfolio-Lib for published work, please use the following BibTeX ent
310310

311311
@misc{riskfolio,
312312
author = {Dany Cajas},
313-
title = {Riskfolio-Lib (6.2.1)},
313+
title = {Riskfolio-Lib (6.2.2)},
314314
year = {2024},
315315
url = {https://github.com/dcajasn/Riskfolio-Lib},
316316
}

riskfolio/src/PlotFunctions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2810,6 +2810,8 @@ def plot_clusters(
28102810
k, clustering_inds = af.std_silhouette_score(dist, clustering, max_k)
28112811
else:
28122812
raise ValueError("The only opt_k_method available are twodiff and stdsil")
2813+
else:
2814+
clustering_inds = hr.fcluster(clustering, k, criterion="maxclust")
28132815

28142816
clusters = {i: [] for i in np.unique(clustering_inds)}
28152817
for i, v in enumerate(clustering_inds):
@@ -3181,6 +3183,8 @@ def plot_dendrogram(
31813183
raise ValueError(
31823184
"The only opt_k_method available are twodiff and stdsil"
31833185
)
3186+
else:
3187+
clustering_inds = hr.fcluster(clustering, k, criterion="maxclust")
31843188
L, M = hr.leaders(clustering, np.array(clustering_inds, dtype=np.int32))
31853189
root, nodes = hr.to_tree(clustering, rd=True)
31863190
nodes = np.array([i.dist for i in nodes])

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
MAJOR = 6
1010
MINOR = 2
11-
MICRO = 1
11+
MICRO = 2
1212
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
1313

1414
def write_version_py(filename='riskfolio/version.py'):

0 commit comments

Comments
 (0)