Skip to content

Conversation

colossatr0n
Copy link
Contributor

__init__ in MainController now takes a path to the configuration directory instead of specifying the path to each config. MainController is meant to be used with a configuration directory, hence the switch.

This change allows all test configs to be opened through settings when running test_blade_runner_manual.py, which wasn't the case previously.

Updated test_blade_runner_manual.py to be compatible with these changes.

Added _reload_configs(). Reloads configuration files in the configuration directory.

MainView has been updated to call _reload_configs() when the settings scene is left. This essentially ensures that the configs are reloaded if any changes are made. Before this commit, the only way to reload the configs was to quit Blade Runner and start it up again.

Fixed restart bug:

BUG: When restart() is called, _verify_params_arg and _search_params_arg are used to reset verify_params and search_params. This is a problem if the search/verification params have been updated through settings, since reload_configs() doesn't update _verify_params_arg or _search_params_arg.

FIX: reload_configs() now saves the data from the configuration files that are used to reinitialize SearchParams and VerifyParams. restart() uses that data to reinitialize verify_params and search_params instead of using _verify_params_arg and search_params_arg.

instead of specifying the path to each config. MainController is meant
to be used with a configuration directory, hence the switch.

This change allows all test configs to be opened through settings when
running test_blade_runner_manual.py, which wasn't the case previously.

Updated test_blade_runner_manual.py to be compatible with these changes.

Added _reload_configs(). Reloads configuration files in the
configuration directory.

MainView has been updated to call _reload_configs() when the settings
scene is left. This essentially ensures that the configs are reloaded
if any changes are made. Before this commit, the only way to reload
the configs was to quit Blade Runner and start it up again.
_search_params_arg are used to reset verify_params and search_params.
This is a problem if the search/verification params have been updated
through settings, since reload_configs() doesn't update
_verify_params_arg or _search_params_arg.

FIX: reload_configs() now saves the data from the configuration files
that are used to reinitialize SearchParams and VerifyParams. restart()
uses that data to reinitialize verify_params and search_params instead
of using _verify_params_arg and search_params_arg.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant