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

Overlap Matrix with MBAR issue: KeyError=2 #125

Open
Alfa-1 opened this issue Sep 15, 2020 · 1 comment
Open

Overlap Matrix with MBAR issue: KeyError=2 #125

Alfa-1 opened this issue Sep 15, 2020 · 1 comment

Comments

@Alfa-1
Copy link

Alfa-1 commented Sep 15, 2020

Hi All,

I have compiled alchemical_analysis/pymbar with python_2.7.9 and I could not export the overlap matrix within MBAR procedure, though MBAR free energy estimation worked well.

I got this error:

O = MBAR.computeOverlap()[2]
KeyError: 2

This issue can be easily fixed by editing the alchemical_analysis.py code.

  1. Find this block in the code:

O = MBAR.computeOverlap()[2]

  1. change the line to this:

O = MBAR.computeOverlap()['matrix']

I hope it helps,
RD

@raitis-b
Copy link

Thank you!
Was having exactly this problem!

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