Skip to content

Commit

Permalink
Fix tempfile creation for Windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanaba committed May 2, 2022
1 parent 897b450 commit 96ad254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ABlooper/openmm_refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ def relax_CDR_loops(pdb_txt, CDR_definitions, spring_constant=10):
:param pdb_txt: ABlooper prediction stored as text in PDB format.
:param CDR_definitions: How we are defining the CDR loops.
:param spring_constant: Strength of the spring keeping backbone atoms in place.
:param attempts: Number of attempts to run minimization before giving up.
"""

with tempfile.NamedTemporaryFile("wt") as tmp:
with tempfile.NamedTemporaryFile("wt", delete=False) as tmp:
tmp.writelines(pdb_txt)
tmp.flush()
fixer = pdbfixer.PDBFixer(tmp.name)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = fh.read()
setup(
name='ABlooper',
version='1.0.10',
version='1.0.11',
description='Set of functions to predict CDR structure',
license='BSD 3-clause license',
maintainer='Brennan Abanades',
Expand Down

0 comments on commit 96ad254

Please sign in to comment.