scml.cli
The SCML universal command line tool
Module Contents
Functions
|
|
|
Gets a range with possibly overriding it with a single value |
Default location for all logs |
|
|
|
The default path to store tournament run info |
|
The default path to store world run info |
|
|
Prints the progress of a tournament |
|
Prints the progress of a world |
|
Finds the shortest unique strings starting from the end of each input |
|
|
|
|
|
|
|
Creates an absolute path from given path which can be a string |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes
- scml.cli.DEFAULT_STD_OLD = 'RandomAgent;BuyCheapSellExpensiveAgent;SatisficerAgent;DecentralizingAgent;DoNothingAgent'[source]
- scml.cli.DEFAULT_STD_2021 = 'MarketAwareDecentralizingAgent;RandomAgent;SatisficerAgent;DecentralizingAgent'[source]
- scml.cli.DEFAULT_2021_NONCOMPETITORS = ['scml.scml2020.agents.DecentralizingAgent', 'scml.scml2020.agents.BuyCheapSellExpensiveAgent'][source]
- scml.cli.DEFAULT_STD_NONCOMPETITORS_OLD = ['scml.scml2020.agents.DecentralizingAgent', 'scml.scml2020.agents.BuyCheapSellExpensiveAgent'][source]
- scml.cli.DEFAULT_ONESHOT_NONCOMPETITORS = ['scml.oneshot.agents.RandDistOneShotAgent', 'scml.oneshot.agents.EqualDistOneShotAgent'][source]
- scml.cli.DEFAULT_STD_NONCOMPETITORS = ['scml.std.agents.GreedyStdAgent', 'scml.std.agents.RandomStdAgent',...[source]
- scml.cli.get_range(x, x_min, x_max)[source]
Gets a range with possibly overriding it with a single value
- scml.cli.save_run_info(name: str, log_path: pathlib.Path | str | None, type_: str = 'world', path: pathlib.Path = DB_FOLDER)[source]
- scml.cli.shortest_unique_names(strs: List[str], sep='.')[source]
Finds the shortest unique strings starting from the end of each input string based on the separator.
The final strings will only be unique if the inputs are unique.
Example
given [“a.b.c”, “d.e.f”, “a.d.c”] it will generate [“b.c”, “f”, “d.c”]
- scml.cli._path(path) pathlib.Path [source]
Creates an absolute path from given path which can be a string
- scml.cli.run2019(steps, levels, competitors, log, compact, log_ufuns, log_negs, raise_exceptions, path, world_config)[source]
- scml.cli.run2020(steps, time, competitors, log, compact, log_ufuns, log_negs, raise_exceptions, path, world_config, show_contracts)[source]
- scml.cli.run2021(steps, time, competitors, log, compact, log_ufuns, log_negs, raise_exceptions, path, world_config, show_contracts, oneshot, name, method)[source]
- scml.cli.run2022(steps, time, competitors, log, compact, log_ufuns, log_negs, raise_exceptions, path, world_config, show_contracts, oneshot, name, method)[source]
- scml.cli.run2023(steps, time, competitors, log, compact, log_ufuns, log_negs, raise_exceptions, path, world_config, show_contracts, oneshot, name, method)[source]
- scml.cli.run2024(steps, time, competitors, log, compact, log_ufuns, log_negs, raise_exceptions, path, world_config, show_contracts, oneshot, name, method)[source]
- scml.cli.tournament2019(output, parallel, name, steps, ttype, timeout, configs, runs, max_runs, competitors, non_competitors, log, world_config, verbosity, log_ufuns, log_negs, compact, raise_exceptions, path, cw)[source]
- scml.cli.tournament2020(name, steps, timeout, ttype, log, verbosity, runs, configs, max_runs, competitors, world_config, non_competitors, compact, log_ufuns, log_negs, raise_exceptions, path, cw, parallel, output)[source]
- scml.cli.tournament2021(name, steps, timeout, ttype, log, verbosity, runs, configs, max_runs, competitors, world_config, non_competitors, compact, log_ufuns, log_negs, raise_exceptions, path, cw, parallel, output)[source]
- scml.cli.tournament2022(name, steps, timeout, ttype, log, verbosity, runs, configs, max_runs, competitors, world_config, non_competitors, compact, log_ufuns, log_negs, raise_exceptions, path, cw, parallel, output)[source]
- scml.cli.tournament2023(name, steps, timeout, ttype, log, verbosity, runs, configs, max_runs, competitors, world_config, non_competitors, compact, log_ufuns, log_negs, raise_exceptions, path, cw, parallel, output)[source]