Skip to content

Commit

Permalink
fix bug on demo data
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-a-sanders authored Mar 13, 2024
1 parent 5d089a1 commit 6525292
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions casanovo/denovo/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,6 @@ def smart_batch_gen(self, batch):
def on_predict_epoch_end(self, results) -> None:
if self.out_writer is None:
return
results = np.array(results, dtype=object).squeeze((0))
with open(self.out_writer.filename, "a") as out_f:
csv_writer = csv.writer(out_f, delimiter="\t")
# Write a header IF THE FILE IS BLANK
Expand All @@ -1044,7 +1043,7 @@ def on_predict_epoch_end(self, results) -> None:
)
)
# Write rows
for group in results:
for group in results[0]:
for batch in group:
for index, t_or_d, peptide, score, per_aa_scores in list(
zip(*batch)
Expand Down

0 comments on commit 6525292

Please sign in to comment.