hestia_earth.utils.model.find_term_match¶
-
hestia_earth.utils.model.find_term_match(values, term_id, default_val={})[source]¶ Return the element in a list which matches the Term with the given @id.
- Parameters
values (
list) – The list in which to search for. Example: cycle[‘inputs’].term_id (
str) – The @id of the Term. Example: sandContentdefault_val – The returned value if no match was found.
- Returns
The matching object.
- Return type
dict