def charge(method_type, code_version='v2'): csv_path = charge_index[method_type] df, arg_start, arg_end = df_read(csv_path) output1 = [] for i in range(0, len(df)): arg_list = df.iloc[i, arg_start:arg_end].values.tolist() output1.append(code_v[code_version](arg_list)) return df_update(df=df, csv_path=csv_path, actual_outputs=[output1], tester_name='anonymous')
def printer(method_type): csv_path = printer_index[method_type] df, arg_start, arg_end = df_read(csv_path=csv_path) output1 = [] for i in range(0, len(df)): arg_list = df.iloc[i, arg_start:arg_end].values.tolist() output1.append(state_dir[printer_atom(arg_list).capitalize()]) return df_update(df=df, csv_path=csv_path, actual_outputs=[output1], tester_name='anonymous')
def charge(method_type): csv_path = charge_index[method_type] df, arg_start, arg_end = df_read(csv_path) output1 = [] for i in range(0, len(df)): arg_list = df.iloc[i, arg_start:arg_end].values.tolist() output1.append(charge_atom(arg_list)) return df_update(df=df, csv_path=csv_path, actual_outputs=[output1], tester_name='Spidey Sandwich')
def commission(method_type): csv_path = commission_index[method_type] df, arg_start, arg_end = df_read(csv_path, arg_end_label='ExpectedOutput1') output1 = [] output2 = [] for i in range(0, len(df)): arg_list = df.iloc[i, arg_start:arg_end].values.tolist() output_1, output_2 = commission_atom(arg_list) output1.append(output_1) output2.append(output_2) return df_update(df=df, csv_path=csv_path, actual_outputs=[output1, output2], tester_name='Spidey Sandwich')