sho-87/cognitive-battery

Adding new task settings

Closed this issue · 0 comments

If task settings have already been saved, adding new task settings options in the future (for new tasks) will be a problematic

Default settings are only saved during "first run" (i.e. if the .ini file doesnt already exist). If a project is already in progress it will have settings saved (i.e. not first run). So adding any new task options in the future will not have defaults saved as the .ini already exists, so will error when trying to read from non-existing settings. The .ini cannot be deleted for existing projects because you will have to reset all the options again

May a solution is to try/catch the reading of potentially non-existing settings, and save defaults at that point instead of only during a "first run"