MRtrix3 / mrtrix3

MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density
http://www.mrtrix.org
Mozilla Public License 2.0
291 stars 179 forks source link

ENH dirstats: Export to JSON #2860

Open Lestropie opened 6 months ago

Lestropie commented 6 months ago

Came to mind when looking at existing CI tests for dirgen. Currently, those tests parse the pretty-print output from dirstat to extract just a specific element, which is then tested against the same statistic from a pre-generated set. This is a fairly limited test. -output could be used there to avoid the pretty-print parsing, but it would still only be looking at one statistic.

Better would be to add a new command-line option to dirstat that would export all statistics of all shells to a JSON file, which could then be parsed fully.