Skip to content

Commit d43c3ed

Browse files
committed
[spectroscopy] Reset image_type back to magnitude for ROI plot of the spectra
1 parent 6dea8ec commit d43c3ed

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

spectroscopy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ def plot_spectra(img, connection, config, metadata):
330330
# Set the header information
331331
tmpHead = img.getHead()
332332
tmpHead.data_type = roiImg.data_type
333+
tmpHead.image_type = ismrmrd.IMTYPE_MAGNITUDE
333334
tmpHead.field_of_view = (ctypes.c_float( imgX), ctypes.c_float( imgY), ctypes.c_float(10)) # Dummy FOV because the spectroscopy FOV isn't appropriate
334335
tmpHead.matrix_size = (ctypes.c_ushort(imgX), ctypes.c_ushort(imgY), ctypes.c_ushort(1))
335336
roiImg.setHead(tmpHead)

0 commit comments

Comments
 (0)