Skip to content

Commit

Permalink
Use readMolecules to read NAMD output since MoleculeParser segfaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Apr 10, 2024
1 parent 621b75a commit 2ec7ee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions python/BioSimSpace/Process/_namd.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,9 +774,7 @@ def getSystem(self, block="AUTO"):
is_lambda1 = False

# Load the restart file.
new_system = _System(
_SireIO.MoleculeParser.read(files, self._property_map)
)
new_system = _IO.readMolecules(files, property_map=self._property_map)

# Create a copy of the existing system object.
old_system = self._system.copy()
Expand Down
4 changes: 1 addition & 3 deletions python/BioSimSpace/Sandpit/Exscientia/Process/_namd.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,9 +759,7 @@ def getSystem(self, block="AUTO"):
is_lambda1 = False

# Load the restart file.
new_system = _System(
_SireIO.MoleculeParser.read(files, self._property_map)
)
new_system = _IO.readMolecules(files, property_map=self._property_map)

# Create a copy of the existing system object.
old_system = self._system.copy()
Expand Down

0 comments on commit 2ec7ee7

Please sign in to comment.