diff --git a/README.md b/README.md index 5b5970c..9ee0b8a 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ please visit our [GitPage](https://brkraw.github.io). - Drs. Mikael Naveau and Gabriel A. Devenyi: The publisher of [bruker2nifti_qa](https://gitlab.com/naveau/bruker2nifti_qa), the set of data to help benchmark testing of Bruker converter. +- ### License: GNU General Public License v3.0 diff --git a/brkraw/scripts/brkraw.py b/brkraw/scripts/brkraw.py index 1b1b0b2..553c1b7 100644 --- a/brkraw/scripts/brkraw.py +++ b/brkraw/scripts/brkraw.py @@ -170,6 +170,9 @@ def main(): output_fname = '{}-{}-{}'.format(output, str(scan_id).zfill(2), reco_id) try: study.save_as(scan_id, reco_id, output_fname, slope=slope, offset=offset) + method = study._pvobj._method[scan_id].parameters['Method'] + if re.search('dti', method, re.IGNORECASE): + study.save_bdata(scan_id, output_fname) if args.bids: study.save_json(scan_id, reco_id, output_fname) print('NifTi file is genetared... [{}]'.format(output_fname))