mammos_entity.operations#

Entities operations.

Functions

concat_flat(*elements[, unit])

Concatenate objects into a unique flat Entity.

mammos_entity.operations.concat_flat(*elements, unit=None)[source]#

Concatenate objects into a unique flat Entity.

At least one of the inputs must be an Entity with a ontology_label. The unit of the first Entity is accepted unless the optional argument unit is defined.

Arrays are flattened according to np.flatten in order=”C”.

Parameters:
  • elements (mammos_entity.typing.EntityLike | list[Any] | tuple[Any])

  • unit (astropy.units.Unit | str | None)

Return type:

mammos_entity.Entity