From 71ce56b9cf97e4c49c24e90fbf71a13493dc54d7 Mon Sep 17 00:00:00 2001 From: Yere <69209435+YerePhy@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:07:42 +0200 Subject: [PATCH] Fixing the iterations over beds data. (#32) Fixing bed concatenation. --- utils/wb_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/wb_tools.py b/utils/wb_tools.py index 03382f6..9c16b95 100644 --- a/utils/wb_tools.py +++ b/utils/wb_tools.py @@ -226,7 +226,7 @@ def join_beds_wb(recons_beds, joint_beds): bed_0_data = bed_0_data[:, :, :-slices_to_remove] - for i in range(1, len(recons_beds)): + for i in range(1, len(recons_beds) - 1): print(f"Bed: {i}") bed = nib.load(recons_beds[i])