DatasetIndexModel

class glotaran.analysis.optimization_group_calculator_linked.DatasetIndexModel(label: str, indices: dict[str, int], axis: dict[str, np.ndarray])[source]

Bases: tuple

A model which contains a dataset label and index information.

Create new instance of DatasetIndexModel(label, indices, axis)

Attributes Summary

axis

Alias for field number 2

indices

Alias for field number 1

label

Alias for field number 0

Methods Summary

count

Return number of occurrences of value.

index

Return first index of value.

Methods Documentation

axis: dict[str, np.ndarray]

Alias for field number 2

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=sys.maxsize, /)

Return first index of value.

Raises ValueError if the value is not present.

indices: dict[str, int]

Alias for field number 1

label: str

Alias for field number 0