Commit 7008e47
Benjamin Moody
Record.__eq__: allow checking equality of lists of arrays.
The Record.__eq__ function is currently used in the test suite to
check whether two Record objects have the same contents. (This
function doesn't actually conform to the standard Python API, but it
works for this purpose.)
In the case of "expanded"-format records, the e_p_signal and/or
e_d_signal attributes are lists of numpy.ndarray objects, not
numpy.ndarray objects themselves. In order to compare these for
equality we must compare each element separately.1 parent d0173b4 commit 7008e47
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
631 | 635 | | |
632 | 636 | | |
633 | 637 | | |
| |||
0 commit comments