Skip to content
Snippets Groups Projects
Commit 1515aca2 authored by Hans-Jörg's avatar Hans-Jörg
Browse files

Tweaks: add simulator to setup, reorder simulator options

parent af3cc250
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,13 @@ args_parser.add_argument(
help="Location of experimental data. A folder if the GridTPT parser is selected, a CSV file if the CSV parser is selected.",
type=file_or_dir_path,
)
args_parser.add_argument(
"-c",
"--csv",
dest="csv",
action="store_true",
help="Use CSV instead of the GridTPT parser to read data.",
)
args_parser.add_argument(
"-l",
"--logics",
......@@ -41,13 +48,6 @@ args_parser.add_argument(
type=float,
help="Total time available to the schedule in seconds.",
)
args_parser.add_argument(
"-c",
"--cvc",
dest="csv",
action="store_true",
help="Use CSV instead of the GridTPT parser to read and write data.",
)
args_parser.add_argument(
"--mu",
metavar="MEAN",
......@@ -90,7 +90,7 @@ def clip_inf(max):
return lambda x: max if x == float("inf") else x
def writeResult(args, result, csv=False):
def writeResult(args, result):
message(f"Writing result to {args.output}.", logics)
with open(args.output, "w") as af:
af.write("-gridTPT report---------------\n")
......
......@@ -34,7 +34,7 @@ setup(
scripts=[
"schedgen/schedgen-optimize.py",
"schedgen/schedgen-finalize.py",
"schedgen/schedgen-finalize.py",
"schedgen/schedgen-simulate.py",
"schedgen/schedgen-visualize.py"
],
license="BSD 3-Clause License",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment