Commit 9d77075
Benjamin Moody
Record.__eq__: replace exact type comparisons with isinstance.
When comparing the attributes of two records, if a value is an
instance of a class derived from 'np.ndarray' or a class derived from
'list', it should be treated the same way as an 'np.ndarray' or a
'list'. Note that there currently are no such classes defined or used
by this package.
Note also that in any case, the respective types of the two attributes
must be equal in order for the values to be considered equal.1 parent 68bb86d commit 9d77075
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
| 628 | + | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
632 | | - | |
| 631 | + | |
| 632 | + | |
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| |||
0 commit comments