optim_results.remove_key
- optim_results.remove_key(keys_to_remove: str | set[str] = [], keys_to_keep: set[str] | None = None, verbose: bool = False)
Remove a key or a list of keys from the results
- Parameters:
keys_to_remove (str | list[str], optional) – key or set of key that should be removed, by default []
keys_to_keep (str | list[str], optional) – If None only keys_to_remove are removed. Otherwise, all key exept those in this list are deleted, by default None
verbose (bool, optional) – If True print a message informing the suppression, by default False