teneto icon indicating copy to clipboard operation
teneto copied to clipboard

An error: The object 'TemporalNetwork' can't import dataframe data of weighted network

Open Qixi-art opened this issue 2 years ago • 3 comments

Hello!

I get a problems when I run the following:

屏幕截图 2021-09-02 114944

In theory, I import a weighted network by the dataframe data. However, I get an unweighted network with TemporalNetwork object.

屏幕截图 2021-09-02 162015

There is no error when I import the dataframe data, but when I continue to use the tnet with other methods like networkmeasures.temporal_degree_centrality, an error appears.

I can solve my problem with other importing method like list of edge, but I wonder why this situation happens.

Qixi-art avatar Sep 02 '21 08:09 Qixi-art

Thanks for raising this. Looks like a bug when importing dataframes! Will take a look.

wiheto avatar Sep 16 '21 09:09 wiheto

Thanks for prompt reply. Looking forward to your improvement!

Qixi-art avatar Sep 17 '21 02:09 Qixi-art

Update after digging around, looks like the weights are not getting included when importing from df into TemporalNetwork (should have been spotted a long time ago).

wiheto avatar Sep 17 '21 14:09 wiheto