hyperc-ai / hyper-etable

0 stars 0 forks source link

Fix universal run function for file-based interface #191

Open grandrew opened 3 years ago

grandrew commented 3 years ago

TODO:

Currently universal run function asks for "directory" arguments:

open_test_solve_save_run(input_xlsx, input_py, output_dir_classes, output_dir_plan, output_dir_solution, project_name="etable_project", py_plan_prefix='DATA.', has_header=True)

and is run with "directories":

hyper_etable.run_util.open_test_solve_save_run(
        input_xlsx=[xlsx_file],
        input_py=['./tests/header_select/a.py'],
        output_dir_classes=out_dir,
        output_dir_plan=out_dir,
        output_dir_solution=out_dir,
        project_name=project_name,
        has_header=True)

Need to rewrite function interface to work with files: (see file names below) (also see exact name of function and parameters)

def run(
  input_xlsx_filename: str
  input_py_filename: str
  output_classes_filename: str
  output_plan_filename: str
  output_xlsx_filename: str
)

examples below:

so parameters should be: