Skip to content

Commit

Permalink
fix typing in test
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter committed Jul 23, 2024
1 parent f7afcca commit 53b6827
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/autora/experimentalist/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,12 @@ def array_to_sequence(input: numpy.typing.ArrayLike):
This is converted into records:
>>> l1 = list(array_to_sequence(a1))
>>> l1
[(0, 'a'), (1, 'b'), (2, 'c'), (3, 'd'), (4, 'e')]
>>> l1 # doctest: +NORMALIZE_WHITESPACE
[np.record((0, 'a'), dtype=[('f0', '<i8'), ('f1', '<U1')]),
np.record((1, 'b'), dtype=[('f0', '<i8'), ('f1', '<U1')]),
np.record((2, 'c'), dtype=[('f0', '<i8'), ('f1', '<U1')]),
np.record((3, 'd'), dtype=[('f0', '<i8'), ('f1', '<U1')]),
np.record((4, 'e'), dtype=[('f0', '<i8'), ('f1', '<U1')])]
The elements of the list are numpy.records
>>> type(l1[0])
Expand Down

0 comments on commit 53b6827

Please sign in to comment.