def make_parser():
p = argparse.ArgumentParser('tape9sparse', formatter_class=argparse.ArgumentDefaultsHelpFormatter)
p.add_argument('tape9s', nargs='+', help="""Paths to the TAPE9 files. If a
path is a directory, a set of default libraries will be gathered from that
directory (transmutagen.origen_all.ALL_LIBS)""")
p.add_argument('--phi', help='the neutron flux in [n/cm^2/sec]',
type=float, default=4e14)
p.add_argument('-f', '--format', help='The sparse matrix format',
default='csr', dest='format')
p.add_argument('-d', '--decay', help='path to the decay file, if needed',
default='decay.lib', dest='decaylib')
p.add_argument('--include-fission', action='store_true', default=True,
dest='include_fission',
help='Include fission reactions in the matrix.')
p.add_argument('--no-include-fission', action='store_false',
dest='include_fission',
help="Don't include fission reactions in the matrix.")
p.add_argument('--alpha-as-He4', action='store_true', default=False,
help="Alpha reactions go to He4")
p.add_argument('-o', '--output-dir', default=None,
help='The directory to write the output files to, in npz format.')
return p
评论列表
文章目录