Skip to content

Commit

Permalink
Fix Density comp
Browse files Browse the repository at this point in the history
  • Loading branch information
GILIYAR RADHAKRISHNA Chaithya committed Jan 10, 2024
1 parent ad4ecff commit 605eab2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 79 deletions.
78 changes: 0 additions & 78 deletions examples/GPU_Examples/NonCartesian_gpuNUFFT_DensityCompensation.py

This file was deleted.

1 change: 1 addition & 0 deletions mri/operators/fourier/non_cartesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def __init__(self, samples, shape, implementation='finufft', n_coils=1,
self.impl = get_operator(self.implementation)(
self.samples,
self.shape,
density=self.density_comp,
**self.kwargs
)

Expand Down
2 changes: 1 addition & 1 deletion mri/operators/fourier/utils/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,4 @@ def estimate_density_compensation(kspace_loc, volume_shape, implementation='pipe
volume_shape,
**kwargs
)
return density_comp
return np.squeeze(density_comp)

0 comments on commit 605eab2

Please sign in to comment.