hestia_earth.utils.toolsΒΆ

Functions

current_time_ms

Get the time in ms since EPOCH.

flatten

Flattens a two-dimensional list into a one-dimensional list.

is_node_of

Check wether node is of a certain Hestia Type.

is_term

Check wether node is a Term.

list_average

Returns the average over a list of numbers.

list_sum

Returns the sum over a list of numbers.

non_empty_list

Filter list removing empty values.

non_empty_value

Check if a value is empty.

safe_parse_date

Parse a string into a date.

safe_parse_float

Parse a string into a float.