CIC-methods / FID-A

Toolbox for simulation and processing of in-vivo magnetic resonance spectroscopy (MRS) data
BSD 3-Clause "New" or "Revised" License
80 stars 72 forks source link

BUG: write sciNotation to jmrui txt files, set frequency in niimrs re… #75

Closed bloyl closed 2 years ago

bloyl commented 2 years ago

This fixes two io issues.

1) io_writejmrui.m used 8 decimal floats to write out fid and specs data, which in some cases poorly reflects data (differences etc.) This PR switches to scientific notation. which is readable by jmrui 6.0 and is other places in the file so probably supported by other jmrui versions.

2) io_loadspec_niimrs.m didn't set the txfrq or the date.

Happy to add some tests if needed, but would need abit of guidance on how you would prefer I do that.

Best, Luke

jamienear commented 2 years ago

Hi Luke, thanks very much for these edits! The changes all look very good, no need for testing. Will merge now. -Jamie