Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timestamp, values, labels = ...
- # If there is no label, simply use all zeros.
- labels = np.zeros_like(values, dtype=np.int32)
- # Complete the timestamp, and obtain the missing point indicators.
- timestamp, missing, (values, labels) =
- complete_timestamp(timestamp, (values, labels))
- ValueError: The shape of ``arrays[0]`` does not agree with the shape of `timestamp` ((109577, 11) vs (109577,))
- if len(timestamp.shape) != 1:
- raise ValueError('`timestamp` must be a 1-D array')
- has_arrays = arrays is not None
- arrays = [np.asarray(array) for array in (arrays or ())]
- for i, array in enumerate(arrays):
- if array.shape != timestamp.shape:
- raise ValueError('The shape of ``arrays[{}]`` does not agree with '
- 'the shape of `timestamp` ({} vs {})'.
- format(i, array.shape, timestamp.shape))
Add Comment
Please, Sign In to add comment