Replaced is and is not
This commit is contained in:
@ -34,7 +34,7 @@ def locate(fname, namespace=''):
|
||||
|
||||
def open_sim(directory, maxcache=None):
|
||||
tr = None
|
||||
if len(glob(os.path.join(directory, 'nojump.xtc'))) is 1:
|
||||
if len(glob(os.path.join(directory, 'nojump.xtc'))) == 1:
|
||||
tr = md.open(directory, trajectory='nojump.xtc', cached=maxcache, reindex=True)
|
||||
else:
|
||||
tr = md.open(directory, trajectory='out/*.xtc', cached=maxcache, reindex=True, nojump=True)
|
||||
|
Reference in New Issue
Block a user