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

numpy error: Multi-dimensional indexing (e.g. obj[:, None]) is no longer supported #55

Open
Mira2121 opened this issue Jan 24, 2025 · 3 comments

Comments

@Mira2121
Copy link

Thank you for the code.
I have installed it using conda and the environment.yml provided for mdmtaskweb. When running calc_network.py, the following is the error i'm getting:

INFO::Calculating centralities...
INFO::Progress: 1 frames completed
ERROR::type=general:frame=1:exception=<class 'Exception'>
Multi-dimensional indexing (e.g. obj[:, None]) is no longer supported. Convert to a numpy array before indexing instead.

I see from the earlier code: "https://github.com/RUBi-ZA/MD-TASK/blame/e03934e733dca7ee97e131338c4f4d69a3e91b64/calc_network.py" - error due to numpy was addressed. Not sure why i'm getting this error...

@oliserand
Copy link
Contributor

Dear @Mira2121

Thanks for using MD-TASK. Could you please try the new code from the mdm-task-web branch found here? Let me know how it goes.

Kind regards,
Olivier

@Mira2121
Copy link
Author

Hi Olivier,
Yep i used the new code https://github.com/RUBi-ZA/MD-TASK/blob/mdm-task-web/src/calc_network.py. Installed mdmtaskweb with "conda env create -f environment.yml". Not sure why getting this error :(

@oliserand
Copy link
Contributor

Dear @Mira2121

Just to be sure - you activated the environment also, right?

Thanks,
Olivier

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