imr-framework / pypulseq

Pulseq in Python
https://pypulseq.readthedocs.io
GNU Affero General Public License v3.0
117 stars 63 forks source link

Units + doc again #94

Closed schmidtijoe closed 1 year ago

schmidtijoe commented 1 year ago

Describe the bug I've come across multiple instances where the use of units is unclear. Especially when looking at the doc (eg. of a function), example scripts of sequences and the code base in pypulseq/Sequence

To Reproduce

Expected behavior

misc:

mavel101 commented 1 year ago

I think you are using 2 different gammas in your 1st point. First gamma has rad/s/T, second one has Hz/T. Therefore you would have to add the factor 2pi also on the right side of your 2nd equation. A gradient amplitude in [Hz/m] times thickness in [m] should always give you a frequency offset in Hz just by looking at the units. Strange though, that you see artifacts in your slice selection. I agree, that units in the docs are often wrong, probably due to copy/paste issues.

schmidtijoe commented 1 year ago

Youre right. Ive mixed them :O good old Handbook of physics formulae tricked me. Sorry. I just new the error for the artifact is somewhere in the phase setting of the slices since it is related. But i am getting closer at fixing. The units of freq and phase offset seem right though! My bad!

sravan953 commented 1 year ago

Hi all, can this issue be closed? Request you to continue reporting other documentation inconsistencies that you come across.