Skip to content

Derivative sync plugin problem #60

Answered by bmeares
p-zach asked this question in Q&A
Apr 24, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hey @p-zach, thanks for opening a question! I just played around with your plugin, and the issue stems from sync pipes selecting both the parent and child pipes, executing the plugin twice at the same time. The first sync works as expected because the child doesn't yet exist, but because the child has different columns from the parent (i.e. the warning about DataFrames' shapes before the error), syncing the child pipe directly fails on line 51.

Because syncing the parent updates the child as well, you need to exit the function if the child is synced directly. To avoid the exception, add a quick check at the top of sync(pipe) to ensure that pipe is actually the parent:

import meerschaum as m…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@p-zach
Comment options

@bmeares
Comment options

Answer selected by bmeares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants