wiheto / teneto

Temporal Network Tools
GNU General Public License v3.0
85 stars 26 forks source link

Deprecated function call in networkmeasures.volatility #92

Open smidmatej opened 6 months ago

smidmatej commented 6 months ago

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 https://github.com/scipy/scipy/issues/15125