python-neo icon indicating copy to clipboard operation
python-neo copied to clipboard

Option to copy array annotations in `duplicate_with_new_data()` function

Open mdenker opened this issue 5 years ago • 1 comments

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

mdenker avatar Oct 21 '19 08:10 mdenker

OK for me. Why not copy_array_annotations=True by default ?

samuelgarcia avatar Oct 24 '19 10:10 samuelgarcia