bugfix in lammps-open.py unit test

This commit is contained in:
Richard Berger
2024-09-17 22:13:07 -06:00
parent 805c2ae131
commit 575c1014d4

View File

@ -7,8 +7,8 @@ has_mpi4py=False
try:
from mpi4py import __version__ as mpi4py_version
# tested to work with mpi4py versions 2 and 3
has_mpi4py = mpi4py_version.split('.')[0] in ['2','3']
# tested to work with mpi4py versions 2, 3, and 4
has_mpi4py = mpi4py_version.split('.')[0] in ['2','3','4']
except:
pass