Skip to content

Commit

Permalink
address breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouy committed Jun 26, 2024
1 parent 8bc9ac1 commit de8784d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prolif/plotting/complex3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,15 @@ def compare(

def _populate_view( # noqa: PLR0912
self,
v: py3Dmol.view,
v: Union[py3Dmol.view, Complex3D],
position: Tuple[int, int] = (0, 0),
display_all: bool = False,
colormap: Optional[Dict[ResidueId, str]] = None,
only_interacting: bool = True,
remove_hydrogens: Union[bool, Literal["ligand", "protein"]] = True,
) -> None:
if isinstance(v, Complex3D) and v._view:
v = v._view

Check warning on line 321 in prolif/plotting/complex3d.py

View check run for this annotation

Codecov / codecov/patch

prolif/plotting/complex3d.py#L321

Added line #L321 was not covered by tests
self._colormap = {} if colormap is None else colormap
self._models = {}
self._mid = -1
Expand Down

0 comments on commit de8784d

Please sign in to comment.