Module Import alias Import alias Import alias Import alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call NameLoad BinOpMult Num BinOpPow Num Num Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Print Str Print BinOpAdd BinOpAdd Str Call NameLoad BinOpMult NameLoad Num Str Print BinOpAdd BinOpAdd Str Call NameLoad BinOpMult NameLoad Num Str Print BinOpAdd BinOpAdd Str Call NameLoad BinOpMult NameLoad Num Str Print BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Print Str Assign NameStore BinOpMult BinOpPow BinOpMult BinOpMult BinOpMult BinOpMult Num AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num BinOpSub NameLoad BinOpDiv NameLoad Num Print BinOpAdd BinOpAdd Str Call NameLoad BinOpDiv NameLoad BinOpPow Num Num Str Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword NameLoad keyword Str Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A sys N/A os N/A getopt N/A math msct_parser Parser main N/A N/A N/A N/A N/A GYRO N/A float N/A 42.576 N/A 10 6 N/A gradamp N/A N/A bigdelta N/A N/A smalldelta N/A N/A parser N/A get_parser N/A arguments N/A N/A parser parse N/A N/A sys argv N/A 1 N/A gradamp N/A arguments N/A -g N/A bigdelta N/A arguments N/A -b N/A smalldelta N/A arguments N/A -d N/A 
Check parameters: N/A N/A N/A   gradient amplitude .....  N/A str N/A gradamp 1000  mT/m N/A N/A N/A   big delta ..............  N/A str N/A bigdelta 1000  ms N/A N/A N/A   small delta ............  N/A str N/A smalldelta 1000  ms N/A N/A N/A   gyromagnetic ratio .....  N/A str GYRO  Hz/T N/A N/A bvalue N/A N/A N/A N/A N/A N/A 2 N/A math pi GYRO gradamp smalldelta 2 N/A bigdelta N/A smalldelta 3 N/A N/A N/A b-value =  N/A str N/A bvalue N/A 10 6  mm^2/s
 N/A bvalue N/A get_parser N/A N/A N/A N/A N/A parser N/A Parser __file__ N/A N/A N/A N/A parser usage set_description Calculate b-value (in mm^2/s). N/A N/A N/A parser add_option name -g type_value float description Amplitude of diffusion gradients (in T/m) mandatory True example 0.04 N/A N/A N/A parser add_option name -b type_value float description Big delta: time between both diffusion gradients (in s) mandatory True example 0.04 N/A N/A N/A parser add_option name -d type_value float description Small delta: duration of each diffusion gradient (in s) mandatory True example 0.03 N/A parser N/A N/A N/A __name__ __main__ N/A N/A N/A main