Commit 62b577f8 authored by Berk Onat's avatar Berk Onat

Fixed variable typo and bracket error from previous update.

parent 0b26cc20
......@@ -521,17 +521,18 @@ class OpenMolfile(object):
if self.topology:
num_atoms = self.topology.natoms
elif self.kwords["natoms"] is not None:
num_atoms = natoms
num_atoms = int(self.kwords["natoms"])
# Trajectory can be read if num_atoms is set
if num_atoms>0:
self.trajectory = Trajectory(file_name,
self.trajectory = Trajectory(
self.kwords["file_name"],
self.kwords["file_format"],
self.fplugin,
num_atoms,
self.kwords["silent"])
else:
warnings.warn("Pymolfile can not find a plugin to open the '" + self.kwords["file_format"] +
"' file format of the file " + self.kwords["file_name"]
"' file format of the file " + self.kwords["file_name"])
def initialize_settings(self):
#global MOLFILE_PLUGINS
......
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