Commit f09e6ee4 authored by eric pellegrini's avatar eric pellegrini
Browse files

cosmetic changes

parent 5c6c7913
......@@ -2,5 +2,8 @@ def has_parent(window, target):
if window == target:
return True
else:
return has_parent(window.Parent, target)
if window.TopLevelParent == window:
return False
return has_parent(window.Parent, target)
......@@ -51,7 +51,7 @@ class MMTKTrajectoryInputData(InputFileData):
raise InputDataError("The MMTK trajectory %r could not be loaded property." % self._filename)
self._data = traj
def close(self):
self._data.close()
......@@ -93,3 +93,7 @@ class MMTKTrajectoryInputData(InputFileData):
@property
def universe(self):
return self._data.universe
@property
def netcdf(self):
return self._data.trajectory.file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment