When creating an Epochs object with "bad" annotations, the non-empty drop log entries currently look like this (tuples of np.str_):
(np.str_('bad_segment'),)
With NumPy 1.x, these entries were regular Python strings, which I think was more readable and more intuitive.
I'm happy to submit a PR to revert the entries to plain strings. Alternatively, we could also consider changing Annotations.description from an np.ndarray with dtype=np.str_ to a plain list[str]. I can't think of a good reason why this field has to be a NumPy array, so I'd really prefer to make this change, which would automatically fix the drop log.
WDYT?
When creating an
Epochsobject with"bad"annotations, the non-empty drop log entries currently look like this (tuples ofnp.str_):With NumPy 1.x, these entries were regular Python strings, which I think was more readable and more intuitive.
I'm happy to submit a PR to revert the entries to plain strings. Alternatively, we could also consider changing
Annotations.descriptionfrom annp.ndarraywithdtype=np.str_to a plainlist[str]. I can't think of a good reason why this field has to be a NumPy array, so I'd really prefer to make this change, which would automatically fix the drop log.WDYT?