Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.asarray_optional  (  a ** kwargs  )[source]

Parameters:
acollections.abc.Buffer | numpy.__array_like._SupportsArray[numpy.dtype[Any]] | numpy.__nested_sequence._NestedSequence[numpy.__array_like._SupportsArray[numpy.dtype[Any]]] | bool | int | float | complex | str | bytes | numpy.__nested_sequence._NestedSequence[bool | int | float | complex | str | bytes] | NoneType

Input data, see numpy docs.

kwargsNone

The keyword arguments are passed to numpy.asarray.

Returns:
outNone

None if a is None else numpy.asarray(a, **kwargs).

API navigation