Skip to content

Commit

Permalink
Fix a small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcajasn committed Jul 20, 2024
1 parent f49e23f commit a021637
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ If you use Riskfolio-Lib for published work, please use the following BibTeX ent
```
@misc{riskfolio,
author = {Dany Cajas},
title = {Riskfolio-Lib (6.2.1)},
title = {Riskfolio-Lib (6.2.2)},
year = {2024},
url = {https://github.com/dcajasn/Riskfolio-Lib},
}
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
copyright = '2020-2024, Dany Cajas'
author = 'Dany Cajas'

__version__ = "6.2.1"
__version__ = "6.2.2"

# The short X.Y version
version = '.'.join(__version__.split('.')[:2])
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ If you use Riskfolio-Lib for published work, please use the following BibTeX ent

@misc{riskfolio,
author = {Dany Cajas},
title = {Riskfolio-Lib (6.2.1)},
title = {Riskfolio-Lib (6.2.2)},
year = {2024},
url = {https://github.com/dcajasn/Riskfolio-Lib},
}
Expand Down
4 changes: 4 additions & 0 deletions riskfolio/src/PlotFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2810,6 +2810,8 @@ def plot_clusters(
k, clustering_inds = af.std_silhouette_score(dist, clustering, max_k)
else:
raise ValueError("The only opt_k_method available are twodiff and stdsil")
else:
clustering_inds = hr.fcluster(clustering, k, criterion="maxclust")

clusters = {i: [] for i in np.unique(clustering_inds)}
for i, v in enumerate(clustering_inds):
Expand Down Expand Up @@ -3181,6 +3183,8 @@ def plot_dendrogram(
raise ValueError(
"The only opt_k_method available are twodiff and stdsil"
)
else:
clustering_inds = hr.fcluster(clustering, k, criterion="maxclust")
L, M = hr.leaders(clustering, np.array(clustering_inds, dtype=np.int32))
root, nodes = hr.to_tree(clustering, rd=True)
nodes = np.array([i.dist for i in nodes])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

MAJOR = 6
MINOR = 2
MICRO = 1
MICRO = 2
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)

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

0 comments on commit a021637

Please sign in to comment.