Skip to content

cli

new_indat(mfile, indat, indat_out, feasible_point_index)

Creates a new IN.DAT using MFILE.DAT iteration variables.

Source code in process/core/io/in_dat/cli.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@click.command("indat", no_args_is_help=True)
@help_opt
@mfile_opt(exists=True)
@indat_opt()
@click.option(
    "-o",
    "--indat-out",
    "indat_out",
    type=str,
    default="new_IN.DAT",
    help="IN.DAT to write out",
)
@click.option(
    "-fpi",
    "--feasible-point-index",
    type=int,
    default=-1,
    help="Create indat from the Nth feasible point in mfile",
)
def new_indat(mfile, indat, indat_out, feasible_point_index):
    """Creates a new IN.DAT using MFILE.DAT iteration variables."""
    write_indat(mfile, indat, indat_out, feasible_point_index)