Skip to content

Commit

Permalink
fixed a silent bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Naozumi Hiranuma committed Nov 6, 2020
1 parent e63a27b commit 05da03a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DeepAccNet-SILENT.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import torch
import time
import pandas as pd
import os

from pyrosetta import *
from pyrosetta.rosetta import *
Expand Down Expand Up @@ -185,10 +186,12 @@ def main():
# Write the result
if args.binder:
r = per_sample_result
outfile.write("%s, %.2d, %.2d, %.2d\n"%(r[0], r[1], r[2], r[3]))
outfile.write("%s, %5f, %5f, %5f\n"%(r[0], r[1], r[2], r[3]))
else:
r = per_sample_result
outfile.write("%s, %.2d\n"%(r[0], r[1]))
outfile.write("%s, %5f\n"%(r[0], r[1]))
outfile.flush()
os.fsync(outfile.fileno())

outfile.close()

Expand Down

0 comments on commit 05da03a

Please sign in to comment.