Skip to content

Commit

Permalink
Use existing backend to get the trajectory from the process.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Dec 7, 2023
1 parent fe41a76 commit d3e74dd
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 d3e74dd

Please sign in to comment.