pydeltasnow.utils.continuous_timedeltas_in_nonzero_chunks¶
- pydeltasnow.utils.continuous_timedeltas_in_nonzero_chunks(dr, start_idxs, stop_idxs)[source]¶
Check that every non-zero HS chunk has continuous dates and same resolution.
- Parameters
dr (1D
numpy.ndarraywithnumpy.datetime64dtype) – Input date range.start_idxs (1D
numpy.ndarray) – Indices where a nonzero chunk begins.stop_idxs (1D
numpy.ndarray) – Indices where a nonzero chunk ends.
- Returns
continuous (bool) – Whether the chunks are evenly spaced with equal resolution.
resolution (float) – The time resolution in hours.