-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cubelist extract strict #3715
Cubelist extract strict #3715
Conversation
e784b39
to
f2a28bb
Compare
c3d013b
to
2b4a70b
Compare
I don't understand why it's just stopped testing in Travis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work @pp-mo, especially with the Mixins! Just a couple of minor points for you to look at, but overall it seems pretty water-tight.
Regarding Travis: I pushed a copy of this PR up to my own fork and Travis gave the latest commits a full pass so no problems there 👍
Everything has passed, LGTM, thanks @pp-mo |
* Allow iterable of constraints. * Add new cubelist extract methods, and tests. * Remove old 'strict' cubelist extraction; add whatsnew. * Tidy private routine interface, and replace use in unrelated test. * Pointless tweak to re-try Travis. * Review change.
Replace "cubelist.extract(..., strict=True)" and the equivalent "cubelist.extract_strict(...)" with a newer-style API.
Closes #3695
As noted there, this is more in keeping with other facilities, and also addresses the slightly quirky return-type behaviour of the old style : The old method would return a cubelist for 0 or 2..N constraints/results, but just a cube for exactly one constraint.