Skip to content

Commit

Permalink
Update vermouth/dssp/dssp.py
Browse files Browse the repository at this point in the history
Co-authored-by: Peter C Kroon <[email protected]>
  • Loading branch information
fgrunewald and pckroon authored Dec 2, 2022
1 parent 8ad21bb commit 4e093f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vermouth/dssp/dssp.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def run_dssp(system, executable='dssp', savefile=None, defer_writing=True, versi
# check version
process = subprocess.run(["dssp", "--version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
version_found = process.stdout.decode('UTF8')
if version not in stdout_UTF8:
if version not in version_found:
raise DSSPError('Vermouth currently only supports DSSP version 3.0.0.')

tmpfile_handle, tmpfile_name = tempfile.mkstemp(suffix='.pdb', text=True,
Expand Down

0 comments on commit 4e093f3

Please sign in to comment.