Utilities

class data_eng_utokyo.utilities.Runner(analyses)[source]

Bases: object

run(cycles: int = 100, period_s: int = 5)[source]
Parameters:
  • cycles (int)

  • period_s (int)

next_execution(start, period_s, i)[source]
data_eng_utokyo.utilities.create_folders(plot_path: str, result_path: str)[source]

Creates folders to save results to.

Also create two subfolders with names ssd and image.

Parameters:
  • plot_path (str) – Path at which the plots should be saved later.

  • result_path (str) – Path at which the results should be saved later.

data_eng_utokyo.utilities.mkdir_if_not_exist(path: str)[source]

Creates a folder at path if the folder does not already exist.

Parameters:

path (str) – The full path of the folder that should be created.