Skip to content

Commit

Permalink
removed debug prints [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
evgueni-ovtchinnikov committed Jun 19, 2024
1 parent 8e8d95b commit 9b3dc46
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/xGadgetron/pGadgetron/Gadgetron.py
Original file line number Diff line number Diff line change
Expand Up @@ -1855,17 +1855,12 @@ def calc_cartesian_dcw(ad):
traj, inverse, counts = numpy.unique(traj, return_inverse=True, return_counts=True, axis=1)

density_weight = (1.0 / counts)[inverse]
print(density_weight.shape)
n = numpy.prod(density_weight.shape)
density_weight = density_weight.reshape((n, 1, 1))
print(density_weight.shape)

print(ad.shape)
density_weight = numpy.tile(density_weight, (1, ad.shape[1], ad.shape[2]))
print(density_weight.shape)

dcw = ad.copy()
print(dcw.shape)
dcw.fill(density_weight)

return dcw
Expand Down

0 comments on commit 9b3dc46

Please sign in to comment.