Skip to content

Commit

Permalink
FIX: Pass list to sparase_hstack, rather than generator
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Sep 24, 2023
1 parent a278c90 commit 6061011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdcflows/interfaces/bspline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6061011

Please sign in to comment.