Skip to content

Commit d28c13a

Browse files
committed
Rename _openmm.py module to avoid import error on Windows py39+.
1 parent 6cead59 commit d28c13a

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

python/BioSimSpace/Process/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@
9191
minimised = process.getSystem()
9292
"""
9393

94+
# Note that the OpenMM module is named differently to avoid import errors on Windows for py39+
95+
9496
from ._amber import *
9597
from ._gromacs import *
9698
from ._namd import *
97-
from ._openmm import *
99+
from .__openmm import *
98100
from ._plumed import *
99101
from ._process_runner import *
100102
from ._somd import *

python/BioSimSpace/Process/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from ._amber import *
3030
from ._gromacs import *
3131
from ._namd import *
32-
from ._openmm import *
32+
from .__openmm import *
3333
from ._process_runner import *
3434
from ._somd import *
3535

python/BioSimSpace/Sandpit/Exscientia/Process/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@
9191
minimised = process.getSystem()
9292
"""
9393

94+
# Note that the OpenMM module is named differently to avoid import errors on Windows for py39+
95+
9496
from ._amber import *
9597
from ._gromacs import *
9698
from ._namd import *
97-
from ._openmm import *
99+
from .__openmm import *
98100
from ._plumed import *
99101
from ._process_runner import *
100102
from ._somd import *

python/BioSimSpace/Sandpit/Exscientia/Process/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from ._amber import *
3030
from ._gromacs import *
3131
from ._namd import *
32-
from ._openmm import *
32+
from .__openmm import *
3333
from ._process_runner import *
3434
from ._somd import *
3535

0 commit comments

Comments
 (0)