def main(*args):
<EOL>(args, opts) = _benson14_parser(*args)<EOL>if opts['<STR_LIT>']:<EOL><INDENT>print(info, file=sys.stdout)<EOL>return <NUM_LIT:1><EOL><DEDENT>if opts['<STR_LIT>']:<EOL><INDENT>def note(s):<EOL><INDENT>print(s, file=sys.stdout)<EOL>return True<EOL><DEDENT><DEDENT>else:<EOL><INDENT>def note(s): return False<EOL><DEDENT>sfmt = opts['<STR_LIT>'].lower()<EOL>if sfmt in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>sfmt = '<STR_LIT>'<EOL>sext = '<STR_LIT>'<EOL><DEDENT>elif sfmt == '<STR_LIT>':<EOL><INDENT>sext = '<STR_LIT>'<EOL><DEDENT>elif sfmt in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>sext = '<STR_LIT:.>' + sfmt<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>' % opts['<STR_LIT>'])<EOL><DEDENT>vfmt = opts['<STR_LIT>'].lower()<EOL>if vfmt == '<STR_LIT>':<EOL><INDENT>vext = '<STR_LIT>'<EOL><DEDENT>elif vfmt in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>vext = '<STR_LIT:.>' + vfmt<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>' % opts['<STR_LIT>'])<EOL><DEDENT>if '<STR_LIT>' in opts and opts['<STR_LIT>'] is not None:<EOL><INDENT>add_subject_path(opts['<STR_LIT>'])<EOL><DEDENT>ow = not opts['<STR_LIT>']<EOL>nse = opts['<STR_LIT>']<EOL>nve = opts['<STR_LIT>']<EOL>tr = {'<STR_LIT>': opts['<STR_LIT>'],<EOL>'<STR_LIT>': opts['<STR_LIT>'],<EOL>'<STR_LIT>': opts['<STR_LIT>'],<EOL>'<STR_LIT>': opts['<STR_LIT>']}<EOL>for subnm in args:<EOL><INDENT>note('<STR_LIT>' % subnm)<EOL>sub = subject(subnm)<EOL>note('<STR_LIT>')<EOL>(lhdat, rhdat) = predict_retinotopy(sub,<EOL>template=opts['<STR_LIT>'],<EOL>registration=opts['<STR_LIT>'])<EOL>if nse:<EOL><INDENT>note('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>note('<STR_LIT>')<EOL>for (t,dat) in six.iteritems(lhdat):<EOL><INDENT>flnm = os.path.join(sub.path, '<STR_LIT>', '<STR_LIT>' + tr[t] + sext)<EOL>if ow or not os.path.exists(flnm):<EOL><INDENT>note('<STR_LIT>' % flnm)<EOL>nyio.save(flnm, dat, format=sfmt)<EOL><DEDENT>else:<EOL><INDENT>note('<STR_LIT>' % flnm)<EOL><DEDENT><DEDENT>for (t,dat) in six.iteritems(rhdat):<EOL><INDENT>flnm = os.path.join(sub.path, '<STR_LIT>', '<STR_LIT>' + tr[t] + sext)<EOL>if ow or not os.path.exists(flnm):<EOL><INDENT>note('<STR_LIT>' % flnm)<EOL>nyio.save(flnm, dat, format=sfmt)<EOL><DEDENT>else:<EOL><INDENT>note('<STR_LIT>' % flnm)<EOL><DEDENT><DEDENT><DEDENT>if nve:<EOL><INDENT>note('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>note('<STR_LIT>')<EOL>for t in lhdat.keys():<EOL><INDENT>flnm = os.path.join(sub.path, '<STR_LIT>', tr[t] + vext)<EOL>if ow or not os.path.exists(flnm):<EOL><INDENT>note('<STR_LIT>' % flnm)<EOL>dtyp = (np.int32 if t == '<STR_LIT>' else np.float32)<EOL>vol = sub.cortex_to_image(<EOL>(lhdat[t], rhdat[t]),<EOL>method=('<STR_LIT>' if t == '<STR_LIT>' else '<STR_LIT>'),<EOL>dtype=dtyp)<EOL>note('<STR_LIT>' % flnm)<EOL>nyio.save(flnm, vol, like=sub)<EOL><DEDENT>else:<EOL><INDENT>note('<STR_LIT>' % flnm)<EOL><DEDENT><DEDENT><DEDENT>note('<STR_LIT>' % sub.name)<EOL><DEDENT>return <NUM_LIT:0><EOL>
benson14_retinotopy.main(args...) runs the benson14_retinotopy command; see 
benson14_retinotopy.info for more information.