Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ Indices and tables
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

4 changes: 2 additions & 2 deletions ismrmrdtools/coils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
Utilities for coil sensivity maps, pre-whitening, etc
Utilities for coil sensitivity maps, pre-whitening, etc
"""
import numpy as np
from scipy import ndimage
Expand All @@ -11,7 +11,7 @@ def calculate_prewhitening(noise, scale_factor=1.0):

:param noise: Input noise data (array or matrix), ``[coil, nsamples]``
:scale_factor: Applied on the noise covariance matrix. Used to
adjust for effective noise bandwith and difference in
adjust for effective noise bandwidth and difference in
sampling rate between noise calibration and actual measurement:
scale_factor = (T_acq_dwell/T_noise_dwell)*NoiseReceiverBandwidthRatio

Expand Down
2 changes: 1 addition & 1 deletion ismrmrdtools/grappa.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ def _pad_kernel(gkernel,padded_shape):
padding_before = ((padding+1)/2).astype(int)
padded_kernel[padding_before[0]:(padding_before[0]+gkernel.shape[0]),padding_before[1]:(padding_before[1]+gkernel.shape[1]),padding_before[2]:(padding_before[2]+gkernel.shape[2])] = gkernel
return padded_kernel

3 changes: 2 additions & 1 deletion ismrmrdtools/ndarray_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ def read_ndarray(filename):
arr = np.frombuffer(by,datatype);
arr = arr.reshape(dims)

return arr
return arr

2 changes: 1 addition & 1 deletion ismrmrdtools/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def sample_data(img_obj, csm, acc=1, ref=0, sshift=0):
#% - sshift scalar : Sampling shift, i.e for undersampling, do we
#% start with line 1 or line 1+sshift?
#%
#% OUPUT:
#% OUTPUT:
#% - data [kx,ky,c]: Sampled data in k-space (zeros where not sampled)
#% - pat [kx,ky,c]: Sampling pattern (0 = not sampled,
#% 1 = imaging data,
Expand Down
2 changes: 1 addition & 1 deletion recon_ismrmrd_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
break


# Initialiaze a storage array
# Initialize a storage array
all_data = np.zeros((nreps, ncontrasts, nslices, ncoils, eNz, eNy, rNx), dtype=np.complex64)

# Loop through the rest of the acquisitions and stuff
Expand Down
3 changes: 1 addition & 2 deletions recon_multi_reps.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

# TODO: Currently ignoring noise scans
if not acq.isFlagSet(ismrmrd.ACQ_IS_NOISE_MEASUREMENT):
raise Exception("Errror: non noise scan found in noise calibration")
raise Exception("Error: non noise scan found in noise calibration")

noise[:,acqnum*noise_samples:acqnum*noise_samples+noise_samples] = acq.data

Expand Down Expand Up @@ -175,4 +175,3 @@
recon[r,:,:,:,:] = np.sum(np.conj(csm) * recon_data,0)

show.imshow(np.squeeze(np.std(np.abs(recon),0)),colorbar=True,scale=(1,2))