Skip to content

Commit

Permalink
Fix overwritting side chain fix file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanaba authored Jan 5, 2024
1 parent 0051e36 commit 208078d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ImmuneBuilder/refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def strained_sidechain_bonds_fixer(strained_residues, topology, positions, n_thr
modeller.delete(bad_side_chains)

# Save model with deleted side chains to temporary file.
tmp_file = "side_chain_fix_tmp.pdb"
random_number = str(int(np.random.rand()*10**8))
tmp_file = f"side_chain_fix_tmp_{random_number}.pdb"
with open(tmp_file,"w") as handle:
app.PDBFile.writeFile(modeller.topology, modeller.positions, handle, keepIds=True)

Expand Down

0 comments on commit 208078d

Please sign in to comment.