schorschinho / osprey

All-in-one toolbox for processing of magnetic resonance spectroscopy data.
https://schorschinho.github.io/osprey
MIT License
58 stars 43 forks source link

[BUG] - Error starting "Process Data" when trying to calculate GABA edited MEGA PRESS on Siemens #784

Open tkhauser opened 1 month ago

tkhauser commented 1 month ago

Describe the bug Loading the TWIX files (GABA edited sequence and non water suppressed reference scan) works perfectly and they are displayed correctly. When I go to "Process Data" I get the following error:

Arrays have incompatible sizes for this operation. Error in op_eccKlose (line 47) out.fids=out.fids.exp(1i-inph); Error in OspreyProcess (line 376) [raw,raw_ref] = op_eccKlose(raw, raw_ref); % Klose eddy current correction Error in osp_onProc (line 37) MRSCont = OspreyProcess(MRSCont); Related documentation Error while evaluating UIControl Callback.

To Reproduce Steps to reproduce the behavior:

  1. Create Job file (enter GABA.dat and GABA_no_water_suppression.dat)
  2. Load Data
  3. Process Data

Expected behavior Alignment and averaging of the spectra should be done and displayed

Screenshots If applicable, add screenshots to help explain your problem.

Computer configuration (please complete the following information):

Additional context Thank you for supplying this great piece of software!

HJZollner commented 1 month ago

Hi @tkhauser,

Thanks for reaching out. Could you take a look at the number of points of the metabolite and the water scan? I am wondering if they have different number of datapoints.

It should be possible to fix this in the code, but I just wanted to be sure that this is the problem first.

Thank you, Helge

tkhauser commented 1 month ago

After loading in Osprey, the metabolite scan shows Sz=2080 whereas the water scan shows Sz=2066. 2080 datapoints is also what Gannet gives me although it does not mention the water reference scan. I am not sure I can set this in the scanning parameters.