BrkRaw / brkraw

BrkRaw: A comprehensive tool to access raw Bruker Biospin MRI data
https://brkraw.github.io
GNU General Public License v3.0
45 stars 27 forks source link

Trying to reconstruct non-existant "recoid" doesn't give helpful error #5

Closed gdevenyi closed 4 years ago

gdevenyi commented 4 years ago
$ brkraw --version
brkraw v0.3.3rc5

$ brkraw info raw
Paravision 5.1
--------------
UserAccount:    galdan
Date:           2020-01-31
Researcher:     MCH_DEV_PHT_001
Subject ID:     20200131_MCH_DEV_PHT_001
Session ID:     dev
Study ID:       1
Date of Birth:  None
Sex:            male
Weight:         5 kg
Subject Type:   Human
Position:       Supine          Entry:  HeadFirst

[ScanID]        Sequence::Protocol::[Parameters]
[001]   FLASH (pvm)::01-TriPilot-multi::
        [ TR: 200 ms, TE: 3 ms, pixelBW: 500.80 Hz, FlipAngle: 30 degree]
    [01] dim: 2D, matrix_size: 256 x 256 x 15, fov_size: 40 x 40 (unit:mm)
         spatial_resol: 0.156 x 0.156 x 1.000 (unit:mm), temporal_resol: 25600.000 (unit:msec)
[002]   FLASH (pvm)::exvivoDanFLASH::
        [ TR: 21.47 ms, TE: 5.11 ms, pixelBW: 96.90 Hz, FlipAngle: 20 degree]
    [01] dim: 3D, matrix_size: 228 x 258 x 130, fov_size: 15.96 x 18.06 x 9.1 (unit:mm)
         spatial_resol: 0.070 x 0.070 x 0.070 (unit:mm), temporal_resol: 1920266.000 (unit:msec)

$ brkraw tonii --recoid 002 --scanid 001 raw
[Warning]::'NoneType' object has no attribute 'parameters
dvm-shlee commented 4 years ago

@gdevenyi It a great suggestion! I will make some updates to print out available scan id or reco id if the input is invalid. I will push this change after some testing.

Thank you!

dvm-shlee commented 4 years ago

@gdevenyi Made an update for it, Below will be an expected result with an invalid scan id or reco id. image

dvm-shlee commented 4 years ago

Found that scan id case does not return the helpful message and fixed it. From release v0.3.3 it will return message. I will close this issue Thank you!