Skip to content
Snippets Groups Projects
Commit 62b577f8 authored by Berk Onat's avatar Berk Onat
Browse files

Fixed variable typo and bracket error from previous update.

parent 0b26cc20
No related branches found
No related tags found
No related merge requests found
...@@ -521,17 +521,18 @@ class OpenMolfile(object): ...@@ -521,17 +521,18 @@ class OpenMolfile(object):
if self.topology: if self.topology:
num_atoms = self.topology.natoms num_atoms = self.topology.natoms
elif self.kwords["natoms"] is not None: 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 # Trajectory can be read if num_atoms is set
if num_atoms>0: if num_atoms>0:
self.trajectory = Trajectory(file_name, self.trajectory = Trajectory(
self.kwords["file_name"],
self.kwords["file_format"], self.kwords["file_format"],
self.fplugin, self.fplugin,
num_atoms, num_atoms,
self.kwords["silent"]) self.kwords["silent"])
else: else:
warnings.warn("Pymolfile can not find a plugin to open the '" + self.kwords["file_format"] + 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): def initialize_settings(self):
#global MOLFILE_PLUGINS #global MOLFILE_PLUGINS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment