We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b12edb9 commit f6d32feCopy full SHA for f6d32fe
filter_functions/pulse_sequence.py
@@ -237,6 +237,17 @@ class PulseSequence:
237
Due to the heavy use of NumPy's :func:`~numpy.einsum` function,
238
results have a floating point error of ~1e-13.
239
"""
240
+ __array_interface__ = {
241
+ 'shape': (),
242
+ 'typestr': '|O',
243
+ 'version': 3
244
+ }
245
+ """Describes to NumPy how to convert this object into an array.
246
+
247
+ Since :class:`PulseSequence` is iterable (through
248
+ :meth:`__getitem__`), NumPy would otherwise try to create an
249
+ ndarray of single-segment :class:`PulseSequence` s.
250
+ """
251
252
def __init__(self, *args, **kwargs) -> None:
253
"""Initialize a PulseSequence instance."""
0 commit comments