Closed bcallen95 closed 2 years ago
It appears that my environment set-up was the issue. Alternatively setting up the Conda environment (in Google Colab) in the following way appears to fix all issues (with each separate "code block" representing a separate cell):
!pip install -q condacolab
import condacolab
condacolab.install()
import condacolab
condacolab.check()
!mamba install -q openmmtools
However, this does lead to a new issue in the "Analyzing the Data with MBAR" Section... Running the following code:
from pymbar import MBAR, timeseries
N_k = np.zeros([nstates], np.int32) # number of uncorrelated samples
for k in range(nstates):
[nequil, g, Neff_max] = timeseries.detectEquilibration(u_kln[k,k,:])
indices = timeseries.subsampleCorrelatedData(u_kln[k,k,:], g=g)
N_k[k] = len(indices)
u_kln[k,:,0:N_k[k]] = u_kln[k,:,indices].T
mbar = MBAR(u_kln, N_k)
[DeltaF_ij, dDeltaF_ij, Theta_ij] = mbar.getFreeEnergyDifferences()
Results in this traceback:
ParameterError Traceback (most recent call last)
@bcallen95 Sorry I just saw this, that error you are getting now is from pymbar
, see this issue: https://github.com/choderalab/pymbar/issues/419
Hi there! I've been trying to run the "Alchemical Free Energy Calculations" Tutorial on the OpenMM Page. When I try to import openmmtools I get the following traceback:
AttributeError Traceback (most recent call last)