ewoksxas.converters.larch.get_attribute_values#

ewoksxas.converters.larch.get_attribute_values(groups, attributes)[source]#

Collect attribute values from a list of Larch groups into arrays.

Args:

groups: Larch groups to read from. attributes: One or more attribute names to extract.

Returns:

Dictionary mapping each attribute name to a NumPy array of its values across all groups.

Raises:

KeyError: If an attribute is not found in a group.

Parameters:
  • groups (list[Group])

  • attributes (str | list[str])

Return type:

dict[str, Any]