Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated function call in networkmeasures.volatility #92

Open
smidmatej opened this issue Apr 4, 2024 · 0 comments
Open

Deprecated function call in networkmeasures.volatility #92

smidmatej opened this issue Apr 4, 2024 · 0 comments

Comments

@smidmatej
Copy link

The function teneto.networkmeasures.volatility() throws

AttributeError: module 'scipy.spatial.distance' has no attribute 'kulsinski'

Minimal working example:

import teneto
import numpy as np
np.random.seed(2019) 
tnet = teneto.TemporalNetwork()

tnet.generatenetwork('rand_binomial',size=(5,3), prob=0.5)
volatility = teneto.networkmeasures.volatility(tnet)
print('volatility: ', volatility)

It seems that the kulsinski metric was deprecated and replaced by kulsinski1. See scipy/scipy#15125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant