Repository navigation
Fix length-1 and nested chords (#4393 #4055 #3885 #3597 #3574 #3323) - #4437
Merged
Merged
Conversation
AlexHill
force-pushed
the
fix_nested_chords
branch
from
December 11, 2017 08:49
a3c6c3b to
02c8239
Compare
Contributor
Author
|
I missed #4301 - this fix seems to be equivalent. @zpl @bruno-rino I'd be interested to know if this fixes your problems. |
AlexHill
force-pushed
the
fix_nested_chords
branch
from
December 11, 2017 09:25
02c8239 to
01f5268
Compare
Contributor
|
@AlexHill If you'd like, I can add you as a maintainer. Your contributions are valuable and welcome :) |
AlexHill
force-pushed
the
fix_nested_chords
branch
from
December 12, 2017 02:21
01f5268 to
bd2af61
Compare
Contributor
Author
|
@thedrow sure, thanks! |
AlexHill
force-pushed
the
fix_nested_chords
branch
from
December 12, 2017 03:46
bd2af61 to
a6bbac5
Compare
Contributor
Author
|
This is rebased, tests are failing because of unrelated issues with bandit. |
auvipy
approved these changes
Dec 12, 2017
Member
|
@AlexHill I have invited you as a collaborator of the project. welcome as a co maintainer and keep the good work up. |
Contributor
Author
|
Thanks Asif! |
Contributor
|
Could you please verify and close all the related issues that this PR resolves? |
Member
|
I have closed all the related ones, but Alex could cross check |
This was referenced Dec 19, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In #3323 a change was made to fix an error with nested chords which meant that chords with a header containing a single task were converted to chains.
In my opinion and those of many others (see linked tickets) this is a mis-feature. You define a chord body function expecting a list of results as its first argument, but if the header contains only a single element - as in a dynamically-generated list of header tasks - your callback function will fail.
This PR reverts that change to make chord behaviour more consistent.
It also fixes a problem with deeply-nested chords. As a nested chord is recursively evaluated, the
chordoption passed down always refers to the top-level chord, meaning the outermost chord ends up being resolved with the result of the innermost signature and chords in between are not executed properly.I've only got integration tests for this currently - they were easier to write, I'll look at how best to unit test this stuff as soon as I have time.
Thanks!
Other tickets related to this issue: #4393 #4055 #3885 #3597 #3574 #3323