def make_parser():
p = argparse.ArgumentParser('origen', formatter_class=argparse.ArgumentDefaultsHelpFormatter)
p.add_argument('xs_tape9', metavar='xs-tape9', help="""path to the cross section TAPE9 file. If
the path is not absolute, defaults to looking in {LIBS_DIR}""".format(LIBS_DIR=LIBS_DIR))
p.add_argument('time', help='the time in sec',
type=float)
p.add_argument('--phi', help='the neutron flux in [n/cm^2/sec]',
type=float, default=4e14)
p.add_argument('--nuclide', help="The initial starting nuclide.",
default="U235")
p.add_argument('--decay-tape9', help="path to the decay TAPE9 file.",
default=decay_TAPE9)
p.add_argument('--origen', help="Path to the origen executable",
default=ORIGEN)
p.add_argument('--no-run-origen', action='store_false', dest='run_origen',
help="Don't run origen")
p.add_argument('--no-run-cram', action='store_false', dest='run_cram',
help="Don't run cram")
p.add_argument('--hdf5-file', default='data/results.hdf5', help="""hdf5 file
to write results to""")
return p
评论列表
文章目录