-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cubelist contain only cubes -- resurrected (#4767)
* ensure cubelists only contain cubes * address __iadd__ and __setitem__ * __setitem__ tests * test for setting more than 1 item * Fix __setitem__ and Py2 tweaks * implement __setslice__ for Python2.7 * change exceptions to warnings * stickler * duck type check; move helpers outside class * blank lines * proposed: revert warnings to exceptions * remove stray extra 'test_fail' * pass sequences through __init__; _assert_is_cube * Replace CubeList init with new. Cube testing duck-type. * Review change. * Provide new-style whatsnew. * Fix whatsnew Co-authored-by: Ruth Comer <ruth.comer@metoffice.gov.uk>
- Loading branch information
Showing
3 changed files
with
173 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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