data_base ❭ db_initializers ❭ load_simrun_general ❭ reoptimize ❭ _check_needs_reoptimization
_check_needs_reoptimization¶
- data_base.db_initializers.load_simrun_general.reoptimize._check_needs_reoptimization(key, old_dumper_name, new_dumper_name)¶
Check if a key needs re-optimization.
Dumper formats that need to be re-optimized are saved in
config.- Parameters:¶
key (str) – The key to check.
old_dumper_name (str) – The name of the old dumper.
new_dumper_name (str) – The name of the new dumper.
- Returns:¶
True if the key needs re-optimization, False otherwise.
- Return type:¶
bool
- Raises:¶
DataBaseException – If the key is not in the database.
Warning – If the old and new dumper are configured to be the same (should not be the case).