Closed Carsopre closed 2 months ago
Solves #460
Created two static methods in the Ra2ceHandler to streamline the multistep .configure() - .run_analysis().
Ra2ceHandler
.configure()
.run_analysis()
Given:
_network_file = Path("data", "network.ini") _analysis_file = Path("data", "analysis.ini")
Previous situation:
_network_config_data = NetworkConfigDataReader().read(_network_file ) _analysis_config_data = AnalysisConfigDataReader().read(_analysis_file) _handler = Ra2ceHandler.from_config(_network_config_data , _analysis_config_data ) _handler.configure() _handler.run_analysis()
New situation:
# Option 1: With `.ini` files Ra2ceHandler.run_with_ini_files(_network_file , _analysis_file) # Option 2: With config files _network_config_data = NetworkConfigDataReader().read(_network_file ) _analysis_config_data = AnalysisConfigDataReader().read(_analysis_file) Ra2ceHandler.run_with_config_data(_network_config_data , _analysis_config_data)
black
isort
master
Improve the tests in test_ra2ce_handler so they are easier to maintain as well as faster to run.
test_ra2ce_handler
Issue addressed
Solves #460
Code of conduct
What has been done?
Created two static methods in the
Ra2ceHandler
to streamline the multistep.configure()
-.run_analysis()
.Given:
Previous situation:
New situation:
Checklist
black
andisort
definitions.master
.Additional Notes (optional)
Improve the tests in
test_ra2ce_handler
so they are easier to maintain as well as faster to run.