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

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

Open
Qixi-art opened this issue Sep 2, 2021 · 3 comments

Comments

@Qixi-art
Copy link

Qixi-art commented Sep 2, 2021

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.

@wiheto
Copy link
Owner

wiheto commented Sep 16, 2021

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

@Qixi-art
Copy link
Author

Thanks for prompt reply. Looking forward to your improvement!

@wiheto
Copy link
Owner

wiheto commented Sep 17, 2021

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).

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

2 participants