Skip to content

Commit

Permalink
corrected density_weight shape fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evgueni-ovtchinnikov committed Jun 19, 2024
1 parent 1bcf62e commit 74aa948
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xGadgetron/pGadgetron/Gadgetron.py
Original file line number Diff line number Diff line change
Expand Up @@ -1859,7 +1859,8 @@ def calc_cartesian_dcw(ad):
l = len(density_weight.shape)
print(l)
if l > 1:
density_weight.reshape((l,))
n = numpy.prod(density_weight.shape)
density_weight.reshape((n,))
print(density_weight.shape)

density_weight = numpy.expand_dims(density_weight, axis=1)
Expand Down

0 comments on commit 74aa948

Please sign in to comment.