Skip to content

Commit

Permalink
update ob imports to work for openbabel>=3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lunamorrow committed Jul 24, 2024
1 parent 80e2cb0 commit dc8a137
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mda_openbabel_converter/OpenBabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from MDAnalysis.core.groups import AtomGroup

try:
import openbabel as OB
from openbabel import openbabel as OB
from openbabel import OBMol
except ImportError:
print("Cannot find openbabel, install with 'pip install openbabel==2.4.0'")
Expand Down
2 changes: 1 addition & 1 deletion mda_openbabel_converter/OpenBabelParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
NEUTRON_MASS = 1.008

try:
import openbabel as ob
from openbabel import openbabel as ob
from openbabel import OBMol
from openbabel import OBElementTable
HAS_OBABEL = True
Expand Down
2 changes: 1 addition & 1 deletion mda_openbabel_converter/tests/test_openbabel_parser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Testing OpenBabel and Pybel

import MDAnalysis as mda
import openbabel as ob
from openbabel import openbabel as ob
from openbabel import OBMol, OBConversion, OBElementTable
from pybel import readfile
# from openbabel.test.files import files
Expand Down

0 comments on commit dc8a137

Please sign in to comment.