Skip to content

Commit

Permalink
Update python/chemiscope/jupyter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Fraux <[email protected]>
  • Loading branch information
GardevoirX and Luthaf authored Nov 19, 2024
1 parent 2e9ffb0 commit b8dce48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/chemiscope/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def show(
"values": (
list(range(len(frames)))
if hasattr(frames, "__len__")
# MDAnalysis `frames` will not be a list, and does not have a `__len__`
else list(range(len(frames.trajectory)))
),
}
Expand Down

0 comments on commit b8dce48

Please sign in to comment.