Skip to content

Commit 0f7c070

Browse files
authored
Turn off infer_residues for visualize step (#1129)
* turn off infer_residues for visualize step * fix typo * update importlib_resources
1 parent 474b65f commit 0f7c070

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mbuild/compound.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,6 +1901,7 @@ def _visualize_py3dmol(self, show_ports=False, color_scheme={}):
19011901
os.path.join(tmp_dir, "tmp.mol2"),
19021902
show_ports=show_ports,
19031903
overwrite=True,
1904+
parmed_kwargs={"infer_residues": False},
19041905
)
19051906

19061907
view = py3Dmol.view()

mbuild/utils/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@
1919
##############################################################################
2020
"""
2121
import importlib
22-
import importlib.resources as resources
2322
import inspect
2423
import os
2524
import sys
2625
import textwrap
2726
import warnings
2827
from unittest import SkipTest
2928

29+
import importlib_resources as resources
30+
3031

3132
class DelayImportError(ImportError, SkipTest):
3233
"""Error to allow better import handling."""

0 commit comments

Comments
 (0)