Skip to content

Commit

Permalink
fix cmap import (#880)
Browse files Browse the repository at this point in the history
* fix cmap import

* Update visualization_3D.py
  • Loading branch information
IAlibay authored Jul 3, 2024
1 parent 43eccaa commit 6aaf7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfe/utils/visualization_3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _add_spheres(view:py3Dmol.view, mol1:Chem.Mol, mol2:Chem.Mol, mapping:Dict[i
mapping of atoms from mol1 to mol2
"""
# Get colourmap of size mapping
cmap = plt.cm.get_cmap("hsv", len(mapping))
cmap = plt.get_cmap("hsv", len(mapping))
for i, pair in enumerate(mapping.items()):
p1 = mol1.GetConformer().GetAtomPosition(pair[0])
p2 = mol2.GetConformer().GetAtomPosition(pair[1])
Expand Down

0 comments on commit 6aaf7e3

Please sign in to comment.