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

Issue in reproducing the funnel methadynamics tutorial #428

Closed
velocirraptor23 opened this issue Dec 6, 2023 · 2 comments
Closed

Issue in reproducing the funnel methadynamics tutorial #428

velocirraptor23 opened this issue Dec 6, 2023 · 2 comments
Labels

Comments

@velocirraptor23
Copy link

velocirraptor23 commented Dec 6, 2023

Hi,

I have been working witht he tutorials, and reproducing them in my system.
Recently I found an issue on the funnel methadynamics tutorial. This happens only in the part were the methadynamics run with OpenMM:


protocol = BSS.Protocol.Equilibration(runtime=0.01*BSS.Units.Time.nanosecond)
process = BSS.Process.OpenMM(minimised, protocol)

Start the process in the background.

process.start()

Wait for the process to finish.

process.wait()

*First I got a problem importing ..._utils on the methadynamics.py script


Traceback (most recent call last):
File "/cluster/ddu/cmmartinez001/Projects/openB/fun-metaD-work_dir/openmm_script.py", line 6, in
from metadynamics import *
File "/cluster/ddu/cmmartinez001/Projects/openB/fun-metaD-work_dir/metadynamics.py", line 31, in
from ..._Utils import _try_import
ImportError: attempted relative import with no known parent package

*Then instead of calling openMM like that I changed it for :


import openmm as mm
import openmm.unit as unit

*Then error I got is this:


Traceback (most recent call last):
File "/cluster/ddu/cmmartinez001/Projects/openB/test/openmm_script.py", line 111, in
simulation = Simulation(prm.topology,
File "/cluster/ddu/cmmartinez001/miniconda3/envs/CST/lib/python3.9/site-packages/openmm/app/simulation.py", line 103, in init
self.context = mm.Context(self.system, self.integrator, platform, platformProperties)
File "/cluster/ddu/cmmartinez001/miniconda3/envs/CST/lib/python3.9/site-packages/openmm/openmm.py", line 2694, in init
_openmm.Context_swiginit(self, _openmm.new_Context(*args))
openmm.OpenMMException: Two Forces define different default values for the parameter 'k'.

*I got those errors even in the example.

Just wondering if I am doing something wrong. I prepare a folder where I have the inputs and followed the tutorial described.

Biopsimspace version: 2023.5.0.dev+35.g66512f27
Python 3.9

Thanks a lot,

Cesar

@lohedges
Copy link
Member

lohedges commented Dec 6, 2023

Thanks for reporting.

I can reproduce the first issue. It looks like someone has incorrectly put a try_import block inside our metadynamics helper script. (This is a patched version of the OpenMM metadynamics driver). This means that the code is no longer self-contained and can be run without BioSImSpace.

Just trying to reproduce the second problem.

@lohedges
Copy link
Member

lohedges commented Dec 6, 2023

Closing since these are now logged on the OpenBioSim issue tracker here and here. Please follow developments on those threads.

@lohedges lohedges closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants