MHCXGraph.utils.tools.find_class¶
- MHCXGraph.utils.tools.find_class(classes: dict[str, dict[str, float]], value: float)[source]¶
Find class intervals that contain a numeric value.
- Parameters:
- Returns:
class_name – Name of the matching class, a list of classes if multiple intervals match, or None if no interval contains the value.
- Return type: