Skip to content

Conversation

JuliaSprenger
Copy link
Member

Currently only analogsignals offer the option to be duplicated keeping the same metadata (annotations, t_start...) but replacing the main signal (times). I added this feature also for spiketrains, events and epochs in order to simplify the modification of these objects, eg when shuffeling spiketimes or shifting all signals in time eg. for alignment of different trials. The current implementation uses helper functions (_copy_data_complement) analogous to the implementation for analogsignals and also contains some basic tests.
Currently only specific attributes are copied (shallow) to the new objects, which could be extended or implemented by a deepcopy in the future.

@coveralls
Copy link

coveralls commented Jun 24, 2016

Coverage Status

Coverage increased (+0.2%) to 55.894% when pulling 6d06f43 on INM-6:feature/duplicate_with_new_data into 963db9b on NeuralEnsemble:apibreak.

@apdavison
Copy link
Member

Many thanks for this. Now that apibreak has been merged into master, please could you close this PR and open a new one against the master branch?

@coveralls
Copy link

coveralls commented Aug 2, 2016

Coverage Status

Coverage increased (+0.2%) to 55.904% when pulling 2da3194 on INM-6:feature/duplicate_with_new_data into fca866b on NeuralEnsemble:apibreak.

@JuliaSprenger JuliaSprenger deleted the feature/duplicate_with_new_data branch June 22, 2017 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants