Skip to content

Commit

Permalink
fix: single sdf in downloads has correct structure separators
Browse files Browse the repository at this point in the history
  • Loading branch information
kaliif committed Oct 25, 2024
1 parent 7334735 commit 63fd363
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions viewer/download_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ def _read_and_patch_molecule_name(path, molecule_name=None):
for next_line in f_in:
content += next_line

# add sdf marker, the file read is mol but the combined file is sdf
if Path(path).suffix.lower() != '.sdf':
content += '$$$$\n\n'

return content


Expand Down

0 comments on commit 63fd363

Please sign in to comment.