def _run_gen_func(s_prms, gen_func): g_prms = create_g_params_from_s_params(s_prms) rand_data = gen_func(g_prms) return random_data_gen.transform_data_for_simulator_format( rand_data, g_prms)
def read_data_from_file(s_prms): file_path = s_prms[Runner.P_KEY_DATA_FILE_PATH] df = pd.read_csv(file_path) g_prms = create_g_params_from_s_params(s_prms) return random_data_gen.transform_data_for_simulator_format(df, g_prms)
def _load_data_from_file(path): g_prms = random_data_gen.InputGenParams(20000, 3, 4, 100, 1.0, 2) df = pd.read_csv(path) return random_data_gen.transform_data_for_simulator_format(df, g_prms)