Skip to content

Commit

Permalink
Merge pull request #219 from OpenBioSim/fix_218
Browse files Browse the repository at this point in the history
Fix issue #218
  • Loading branch information
lohedges authored Dec 8, 2023
2 parents d9569df + d3e74dd commit 3976503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -921,9 +921,9 @@ def nFrames(self):
The number of trajectory frames.
"""

# First get the current MDTraj object.
# First get the current trajectory object using the existing backend.
if self._process is not None and self._process.isRunning():
self._trajectory = self.getTrajectory()
self._trajectory = self.getTrajectory(format=self._backend)

# There is no trajectory.
if self._trajectory is None:
Expand Down
4 changes: 2 additions & 2 deletions python/BioSimSpace/Trajectory/_trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,9 +921,9 @@ def nFrames(self):
The number of trajectory frames.
"""

# First get the current MDTraj object.
# First get the current trajectory object using the existing backend.
if self._process is not None and self._process.isRunning():
self._trajectory = self.getTrajectory()
self._trajectory = self.getTrajectory(format=self._backend)

# There is no trajectory.
if self._trajectory is None:
Expand Down

0 comments on commit 3976503

Please sign in to comment.