mrpro.utils.summarize_values

mrpro.utils.summarize_values(value: Tensor | Sequence[float], summarization_threshold: int = 6) str[source]

Summarize the values of a tensor or sequence to a string.

Returns a string representation of the object and its values.

Parameters:
  • value (Tensor | Sequence[float]) – The object to summarize.

  • summarization_threshold (int, default: 6) – The threshold of total array elements triggering summarization.

Returns:

A string summary of the shape and values.