Commit 7cfa568c authored by Berk Onat's avatar Berk Onat

Fixing load of load_pymolfile with Nonetype format.

parent 034d5e60
......@@ -3384,7 +3384,7 @@ class MDDataAccess(object):
return self.trajhandler.cell_lengths
def load_pymolfile_topology(self, file_format):
def load_pymolfile_topology(self, file_format=None):
""" function to call pymolfile topology reader
......@@ -3394,7 +3394,10 @@ class MDDataAccess(object):
topology = None
universe = None
fileformat = re.sub('[.]', '', file_format)
if file_format:
fileformat = re.sub('[.]', '', file_format)
fileformat = file_format
if self.topofile:
molfile_topo = pym.OpenMolfile(self.topofile, file_format=fileformat)
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