Skip to content

Fix saving chains starting with splitter and simplify#280

Merged
aacuevas merged 1 commit intoopen-ephys:developmentfrom
tne-lab:splitter-save-fix
Jan 6, 2019
Merged

Fix saving chains starting with splitter and simplify#280
aacuevas merged 1 commit intoopen-ephys:developmentfrom
tne-lab:splitter-save-fix

Conversation

@ethanbb
Copy link
Copy Markdown
Contributor

@ethanbb ethanbb commented Jan 2, 2019

Currently, saving a signal chain that starts with a splitter only saves the first branch. The first processor in a chain isn't handled specially if it is a splitter, as splitters encountered later in the chain are. Even though chains that don't start with a source can't be played, I still think it's important to save and load any signal chain correctly to minimize frustration.

I also took the opportunity to make a couple simplifications to make the saving code easier to understand. For instance, mergers are never saved in splitPoints anymore, so all the special logic for when a processor in splitPoints is a merger was unreachable code and could be deleted.

And I know the signal chain is being revamped, so this would be a temporary fix.

@aacuevas aacuevas merged commit 7aeec06 into open-ephys:development Jan 6, 2019
@ethanbb ethanbb deleted the splitter-save-fix branch January 7, 2019 15:01
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.

2 participants