wtf module
Test the wtf (what to fit) key of the config file.
Todo
Specific test for every optimisation method? For now, just trust the user.
- IMPLEMENTED_STRATEGIES = ( 'k out of n', 'manual', 'l neighboring lattices', 'global', 'global downstream')
- IMPLEMENTED_OBJECTIVE_PRESETS = ( 'EnergyPhaseMismatch', 'simple_ADS', 'EnergyMismatch', 'rephased_ADS', 'EnergySyncPhaseMismatch', 'sync_phase_as_objective_ADS', 'experimental')
- IMPLEMENTED_OPTIMISATION_ALGORITHMS = ( 'least_squares', 'least_squares_penalty', 'nsga', 'downhill_simplex', 'downhill_simplex_penalty', 'nelder_mead', 'differential_evolution', 'explorator', 'experimental')
- test(id_nature: str, strategy: str, objective_preset: str, optimisation_algorithm: str, tie_politics: str = 'upstream first', idx: str = '', shift: int = 0, **wtf_kw) None
Test the
wtf.tomlentries.
- _test_cavity_selection(tie_politics: str, shift: int) None
Test the keywords that alter the selection of compensating cavities.