CYCAMORE
|
Functions | |
def | check_cmd (args, cwd, holdsrtn) |
def | cyclus_has_coin () |
def | exit_times (agent_id, exit_table) |
def | find_ids (data, data_table, id_table) |
def | hasher (x) |
def | idx (h) |
def | run_cyclus (cyclus, cwd, in_path, out_path) |
def | table_exist (db, tables) |
Variables | |
CYCLUS_HAS_COIN = None | |
sha1array = lambda x: np.array(idx(hasher(x)), np.uint32) | |
tuple | str_types = (bytes, str) |
A set of tools for use in integration tests.
def helper.check_cmd | ( | args, | |
cwd, | |||
holdsrtn | |||
) |
Runs a command in a subprocess and verifies that it executed properly.
Definition at line 74 of file helper.py.
Referenced by run_cyclus().
def helper.cyclus_has_coin | ( | ) |
Definition at line 91 of file helper.py.
Referenced by test_run_inputs.test_inputs().
def helper.exit_times | ( | agent_id, | |
exit_table | |||
) |
def helper.find_ids | ( | data, | |
data_table, | |||
id_table | |||
) |
Finds ids of the specified data located in the specified data_table, and extracts the corresponding id from the specified id_table.
Definition at line 36 of file helper.py.
References sha1array.
Referenced by test_regression.TestRegression.find_ids().
def helper.hasher | ( | x | ) |
Definition at line 20 of file helper.py.
References cycamore.int.
def helper.run_cyclus | ( | cyclus, | |
cwd, | |||
in_path, | |||
out_path | |||
) |
Runs cyclus with various inputs and creates output databases
Definition at line 65 of file helper.py.
References check_cmd().
Referenced by test_regression.TestRegression.setUp().
def helper.table_exist | ( | db, | |
tables | |||
) |
Definition at line 29 of file helper.py.
Referenced by find_ids().