Skip to content

Commit fc20701

Browse files
committed
Adds an option to set a random seed
1 parent 2a900f6 commit fc20701

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

structure_threader/argparser.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,13 @@ def argument_parser(args):
129129
required=False,
130130
help="Add extra arguments to pass to the "
131131
"wrapped program here (between quotes).\nExamples: "
132-
"\"prior=logistic seed=123\" for fastStructure\n"
132+
"\"prior=logistic\" for fastStructure\n"
133133
"\"-D 12345\" for STRUCTURE",
134134
metavar="string", default="")
135+
misc_opts.add_argument("--seed", dest="seed", type=int, required=False,
136+
help="Define the random seed value to pass to"
137+
"STRUCTURE and fastStructure",
138+
default=1235813, metavar="int")
135139

136140
plot_opts.add_argument("--no_plots", dest="noplot", type=bool,
137141
required=False, help="Disable plot drawing.",

0 commit comments

Comments
 (0)