Dummy object that just exists to hang __array_interface__ dictionaries and possibly keep alive a reference to a base array.
| 13 | |
| 14 | |
| 15 | class DummyArray: |
| 16 | """Dummy object that just exists to hang __array_interface__ dictionaries |
| 17 | and possibly keep alive a reference to a base array. |
| 18 | """ |
| 19 | |
| 20 | def __init__(self, interface, base=None): |
| 21 | self.__array_interface__ = interface |
| 22 | self.base = base |
| 23 | |
| 24 | |
| 25 | def _maybe_view_as_subclass(original_array, new_array): |
no outgoing calls
searching dependent graphs…