MCPcopy Create free account
hub / github.com/PyTables/PyTables / array_as_internal

Function array_as_internal

tables/flavor.py:174–185  ·  view source on GitHub ↗

Get a version of the given `array` in the internal flavor. The input `array` must be of the given `src_flavor`, and the returned array will be of the internal flavor. If the conversion is not supported, a ``FlavorError`` is raised.

(
    array: npt.ArrayLike, src_flavor: FlavorType
)

Source from the content-addressed store, hash-verified

172
173
174def array_as_internal(
175 array: npt.ArrayLike, src_flavor: FlavorType
176) -> np.ndarray:
177 """Get a version of the given `array` in the internal flavor.
178
179 The input `array` must be of the given `src_flavor`, and the
180 returned array will be of the internal flavor.
181
182 If the conversion is not supported, a ``FlavorError`` is raised.
183
184 """
185 return array_of_flavor2(array, src_flavor, internal_flavor)
186
187
188def flavor_of(array: npt.ArrayLike) -> FlavorType:

Callers 10

__init__Method · 0.85
appendMethod · 0.85
_conv_to_recarrMethod · 0.85
modify_columnMethod · 0.85
modify_columnsMethod · 0.85
_g_createMethod · 0.85
create_arrayMethod · 0.85
create_carrayMethod · 0.85
create_earrayMethod · 0.85
create_vlarrayMethod · 0.85

Calls 1

array_of_flavor2Function · 0.85

Tested by

no test coverage detected