python-neo
python-neo copied to clipboard
Option to copy array annotations in `duplicate_with_new_data()` function
In the general case, it's desirable to not copy array annotations when duplicating an object with new data. However, sometimes it may make sense, e.g., when z-scoring an analog signal. The code is simple: see #258 in https://github.com/NeuralEnsemble/elephant/pull/258/files
So, the duplicate_with_new_data()
function could get a new flag
copy_array_annotations=False
OK for me. Why not copy_array_annotations=True by default ?