From 6061011c22b2fcb3fe6b9acc6c63de12abee5c23 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Sun, 24 Sep 2023 11:35:49 -0400 Subject: [PATCH] FIX: Pass list to sparase_hstack, rather than generator --- sdcflows/interfaces/bspline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdcflows/interfaces/bspline.py b/sdcflows/interfaces/bspline.py index 5674bdd486..0ba4ed98f7 100644 --- a/sdcflows/interfaces/bspline.py +++ b/sdcflows/interfaces/bspline.py @@ -198,7 +198,7 @@ def _run_interface(self, runtime): # Calculate collocation matrix from (possibly resized) image and knot grids colmat = sparse_hstack( - grid_bspline_weights(fmapnii, grid) for grid in bs_grids + [grid_bspline_weights(fmapnii, grid) for grid in bs_grids] ).tocsr() bs_grids_str = ["x".join(str(s) for s in grid.shape) for grid in bs_grids]