Skip to content

Commit

Permalink
Refactored code to create new universe if not copyable.
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Click <tcthepoet@yahoo.com>
  • Loading branch information
Timothy Click authored and Timothy Click committed Jan 18, 2019
1 parent 2fa7b9d commit 5a3c8a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fluctmatch/models/enm.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def create_topology(self, universe: mda.Universe):
try:
self.universe = universe.copy()
except TypeError:
self.universe = universe
self.universe = mda.Universe(universe.filename,
universe.trajectory.filename)

rename_universe(self.universe)

Expand Down

0 comments on commit 5a3c8a6

Please sign in to comment.