ewoksxas.converters.orange.Features#

class ewoksxas.converters.orange.Features(names, data, attributes=<factory>)[source]#

Bases: object

The spectral feature block: x-axis names and the 2D intensity matrix.

Attributes:

names: 1D array of x-axis values (e.g. energy), one per feature column. data: 2D intensity matrix with shape (n_rows, n_features).

Parameters:
  • names (ndarray[tuple[int, ...], dtype[Any]])

  • data (ndarray[tuple[int, ...], dtype[float64]])

  • attributes (list[dict[str, str]])

attributes: list[dict[str, str]]#
data: ndarray[tuple[int, ...], dtype[float64]]#
get_attributes()[source]#
Return type:

list[dict[str, str]]

matches(other)[source]#

Return True when other is equivalent to this x-axis.

Parameters:

other (ndarray[tuple[int, ...], dtype[Any]])

Return type:

bool

names: ndarray[tuple[int, ...], dtype[Any]]#
to_variables()[source]#
Return type:

list[ContinuousVariable]