-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for nesting sequences and asking questions about nested …
…items and sequences. (#23) * Hide the .children attribute on compositon. - This allows us to intercept insertion to Compositions in the future for de-duplications. * Working commit, adding unit test that calls copy. * Add copy and deepcopy methods to item. * Implement __copy__ and __deepcopy__ for core.Item. This enables the python `copy` module to function on core.Items. * Add copy functions to SerializeableObject. * Add unit test for type preservation on copy. * Promote copy/deepcopy to serializeable_object. * Implement copy/deepcopy for composition. * Add range_of_child. * Autopep8 pass. * Fix bug in range algorithm. * Add documentation to Clip and Item. - Remove dead code - Small style tweak * Clarify comments regarding copy policy. * Refactor out code to find children to composition. * PEP8 pass. * Refactor to set_parent on Item. This makes more sense since it manipulates the hidden ._parent pointer. * Review notes: - Remove NoSuchChildAtIndex - clean up variable names * Add error suffix to exceptions. * Add unit test to clarify duration. * Refactor range_of_child up to composition * Add range_of_child to Timeline * Add trimmed_range_of_child to Stack and composition. * trimmed_range_of_child_at_index for Sequence * Add transformed_time and reference_space to range. * PEP8 pass. * Remove vestigal _is_parent_of. * set_parent -> _set_parent * Clean up documentation on [trimmed_]range_of_child. * Added TimeRange.contains(RationalTime) for clarity * Clip needs to override trimmed_range so it can fall back to the media_reference's available_range. * Filler is not visible. All other Items are. * You can ask a Sequence for the child at a given time. * An empty Stack has duration 0, instead of None. * Exposed a public parent() getter on Item. * Removed unnecessary arguments when making a 0 RationalTime. * Compositions can determine which children overlap a given time. * In a nested Composition, you can ask for the top clip at a given time. * Lets test how nesting works in some more than trivial cases. * Fixing bugs in transformed_time(). * Small pythonic cleanup pass. - Switch to using enumerate in children_at_time - Switch to using self-iteration rather than while loop in top_clip_at_time * More algorithmic simplification. * Review Notes * Remove unused exception. * Reuse existing implementation when possible. * Review notes * Setitem shouldn't change length. * Removing unused, untested functions. * Clean up contain method and add tests. * Update shot_detect method. * Removing dead code, post review. * Visible should be a staticmethod, not a property. * no reason for the extra raise * PEP8 pass.
- Loading branch information
1 parent
863ae5e
commit e1fd7eb
Showing
20 changed files
with
1,611 additions
and
143 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
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
Oops, something went wrong.