Skip to content

Commit

Permalink
Merge pull request #51 from molssi-seamm/dev
Browse files Browse the repository at this point in the history
Fixed crash due to multiple slashes in titles.
  • Loading branch information
seamm authored Nov 16, 2023
2 parents 53fce0a + 7a7b7c0 commit ca03a31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
=======
History
=======
2023.11.16 -- Bugfix: titles in SDF files
* Crashed reading some SDF files write by SEAMM due to the system and configuration
names encoded in the title having multiple slashes (/).

2023.11.5 -- Added writers for CIF and mmCIF.

2023.11.2 -- Initial changes to structure handling
Expand Down
2 changes: 1 addition & 1 deletion read_structure_step/formats/sdf/sdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def load_sdf(
if "SEAMM=" in title:
for tmp in title.split("|"):
if "SEAMM=" in tmp and "/" in tmp:
sysname, confname = tmp.split("=", 1)[1].split("/")
sysname, confname = tmp.split("=", 1)[1].split("/", 1)
sysname = sysname.strip()
confname = confname.strip()
have_sysname = True
Expand Down

0 comments on commit ca03a31

Please sign in to comment.