(dt)
| 858 | # counts up elements in subarrays, including nested subarrays, and returns |
| 859 | # base dtype and count |
| 860 | def count_elem(dt): |
| 861 | count = 1 |
| 862 | while dt.shape != (): |
| 863 | for size in dt.shape: |
| 864 | count *= size |
| 865 | dt = dt.base |
| 866 | return dt, count |
| 867 | |
| 868 | fields = [] |
| 869 | for name in dt.names: |
no outgoing calls
no test coverage detected