Helper function for finding shapes and chunks for *_like() array creation functions.
(a, chunks, shape)
| 290 | |
| 291 | |
| 292 | def _get_like_function_shapes_chunks(a, chunks, shape): |
| 293 | """ |
| 294 | Helper function for finding shapes and chunks for *_like() |
| 295 | array creation functions. |
| 296 | """ |
| 297 | if shape is None: |
| 298 | shape = a.shape |
| 299 | if chunks is None: |
| 300 | chunks = a.chunks |
| 301 | elif chunks is None: |
| 302 | chunks = "auto" |
| 303 | return shape, chunks |
| 304 | |
| 305 | |
| 306 | def linspace( |
no outgoing calls
no test coverage detected
searching dependent graphs…