jwestw / Public_Transport_Efficiency

A project to measure the efficiency of public transport in the UK
MIT License
1 stars 0 forks source link

Create a config file and config parser for the script #42

Closed jwestw closed 2 years ago

jwestw commented 2 years ago

Use either TOML or yaml to create config file that can take parameters into the script, making it easier for the user to choose how the script is run.

Parameters to abstract into the config file:

Your config file might look like this:

write_to_excel = true
overwrite_excel = false
# some code to read in the yaml or toml

if overwrite_excel:
    if write_to_excel:
       pd.to_excel()
else:
    if os.is_file(file_path):
         pd.to_excel()
chloemurrell commented 2 years ago

Additional Requirements: Add "Location" column and "Arrival Time Period" column. https://github.com/jwestw/Public_Transport_Efficiency/issues/11#issuecomment-1175161557