From 4a57dff2dc815235685bee18a3b61a4f3ecf532c Mon Sep 17 00:00:00 2001 From: Thomas Hopf Date: Mon, 2 Dec 2024 17:57:42 +0100 Subject: [PATCH] fix wrong file handle --- evcouplings/align/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evcouplings/align/protocol.py b/evcouplings/align/protocol.py index 448a638..a38adce 100644 --- a/evcouplings/align/protocol.py +++ b/evcouplings/align/protocol.py @@ -988,7 +988,7 @@ def modify_alignment(focus_ali, target_seq_index, target_seq_id, region_start, * # save weights to file for reuse by plmc (one weight per line in text format) if seq_weight_file is not None: with open(seq_weight_file, "w") as f: - cut_ali.save_weights(seq_weight_file) + cut_ali.save_weights(f) # add sequence weight file to outcfg to forward to couplings stage if seq_weight_file is not None: