open-discussion > A minor bug
Showing 1-2 of 2 posts
Jun 12, 2019 10:06 PM | Ricardo Alonso Rios Carrillo - UNAM
A minor bug
Hi! I have been using this toolbox for simulating DW-MRI signals
with oscillate gradients with compartments that try to sitmulate
axonal loss.
I have been trying stuff like your papers to see if i can get a reasonable parameter configuration to use in our 7T Bruker scanner.
The thing is when I was trying to simulate TWOGSE gradients I found a little mistake with the wave_form.m function: There are some cases that you can get to line 281 without the i_smalldel variable defined before this point, resulting in a matlab error. I just added:
i_smalldel = i;
i_delta = i_smalldel;
after line 254 to workaround this error. It looks like it works but not sure if it is the right thing to do.
I just wanted to report this. Thank you for the toolbox I have been learning a lot thanks to it.
Greeting from México!
Ricardo Rios
I have been trying stuff like your papers to see if i can get a reasonable parameter configuration to use in our 7T Bruker scanner.
The thing is when I was trying to simulate TWOGSE gradients I found a little mistake with the wave_form.m function: There are some cases that you can get to line 281 without the i_smalldel variable defined before this point, resulting in a matlab error. I just added:
i_smalldel = i;
i_delta = i_smalldel;
after line 254 to workaround this error. It looks like it works but not sure if it is the right thing to do.
I just wanted to report this. Thank you for the toolbox I have been learning a lot thanks to it.
Greeting from México!
Ricardo Rios
Oct 3, 2019 07:10 PM | Andrada Ianus - UCL
RE: A minor bug
Dear Ricardo,
Thank you so much for noticing this. I apologise for replying so late, I was changing labs over the summer and I haven't been following this space :)
I'm glad you had a workaround and solved the issue, I will fix it in the code soon as well.
In general, if a waveform looks as you expect when you plot it and the sum of the gradients is zero (I assume the designed gradients are balanced) then it is likely correct.
I'm really happy you found the toolbox useful! Please let me know if you have any other questions.
Best,
Andrada
Thank you so much for noticing this. I apologise for replying so late, I was changing labs over the summer and I haven't been following this space :)
I'm glad you had a workaround and solved the issue, I will fix it in the code soon as well.
In general, if a waveform looks as you expect when you plot it and the sum of the gradients is zero (I assume the designed gradients are balanced) then it is likely correct.
I'm really happy you found the toolbox useful! Please let me know if you have any other questions.
Best,
Andrada