WrightTools.kit.discover_dimensions

WrightTools.kit.discover_dimensions(arr, cols) → collections.OrderedDict[source]

Discover the dimensions of a flattened multidimensional array.

Parameters
  • arr (2D numpy ndarray) – Array in [col, value].

  • cols (dictionary) – Dictionary with column names as keys, and idx, tolerance and units as values.

Returns

expression: points

Return type

dictionary