ovo.core.logic.filtering_logic¶
Module Contents¶
Functions¶
Filter designs by thresholds (inclusive - <=, >=) |
API¶
- ovo.core.logic.filtering_logic.filter_designs_by_thresholds(all_design_ids: list[str], thresholds: dict[str, ovo.core.database.Threshold], values: dict[str, dict[str, float | None]]) tuple[list[str], dict[str, int]]¶
Filter designs by thresholds (inclusive - <=, >=)
- Parameters:
all_design_ids – list of design ids
thresholds – dictionary descriptor_key -> Threshold object
values – dictionary descriptor_key -> descriptor values (index = design_id, value = descriptor value)
- Returns:
tuple:
list of design ids that pass the thresholds, in original order
dictionary descriptor_key -> number of designs that pass the threshold