Skip to content

Conversation

ssteinbach
Copy link
Collaborator

  • Also add the ability to layer over baselines in tests
  • global_start_time has a default value with a rate of 24

- Also add the ability to layer over baselines in tests
- global_start_time has a default value with a rate of 24
@ssteinbach ssteinbach requested a review from jminor April 4, 2019 21:17
global_start_time = core.serializable_field(
"global_start_time",
opentime.RationalTime,
doc="Global starting time value and rate of the timeline."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. interesting that this also implies the edit rate of the timeline.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

�Yeah. What do you think? Really it gives the timecode of the first time in the timeline.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...but that implies the rate

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind that so much in principle, but given that there's a default rate of 24 I think it will be a problem in practice.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a clean way to remove the default rate?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that there is a clean way to remove the default. RationalTime objects are immutable, so it can be None or not set AFAIK. we should discuss further.

@ssteinbach
Copy link
Collaborator Author

ssteinbach commented Apr 4, 2019 via email

@davidbaraff
Copy link
Contributor

davidbaraff commented Apr 4, 2019 via email

@jminor
Copy link
Collaborator

jminor commented Apr 4, 2019

If we can change the default to be None that would be better. If anyone is doing arithmetic with it, they'll have to check for None first though.

Currently the fcp_xml and maya adapters put real values in there, and I'm about to update the AAF adapter to do the same.

We might have to bump the schema version to Timeline.2. Lets discuss more before we commit to this change.

@ssteinbach
Copy link
Collaborator Author

Either way I would argue this change should land in beta 11 and not beta 10. Thoughts?

@ssteinbach
Copy link
Collaborator Author

Addresses #480

- Remove the code that was setting it to a default of 0, 24
- Update baseline for the Timeline
- In the FCP7 round trip test, FCP round trips the rate but not the
offset.  Add some code to exersize this.
@codecov-io
Copy link

Codecov Report

Merging #477 into master will increase coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #477      +/-   ##
==========================================
+ Coverage   88.08%   88.23%   +0.14%     
==========================================
  Files          68       68              
  Lines        6881     6899      +18     
==========================================
+ Hits         6061     6087      +26     
+ Misses        820      812       -8
Impacted Files Coverage Δ
opentimelineio/schema/timeline.py 100% <100%> (ø) ⬆️
opentimelineio/schema/serializable_collection.py 97.61% <0%> (ø) ⬆️
...elineio_contrib/adapters/tests/test_aaf_adapter.py 98.31% <0%> (+0.05%) ⬆️
...neio_contrib/adapters/advanced_authoring_format.py 93.2% <0%> (+2.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5352c91...86a1399. Read the comment docs.

@ssteinbach ssteinbach added this to the Public Beta 10 milestone Apr 19, 2019
@ssteinbach
Copy link
Collaborator Author

We are going to land this in beta 10 after all. This change should be a sooner-not-later change.

@ssteinbach ssteinbach merged commit 8cfcf95 into AcademySoftwareFoundation:master Apr 19, 2019
@ssteinbach ssteinbach deleted the serialize_start_time branch April 19, 2019 22:31
ssteinbach added a commit to ssteinbach/OpenTimelineIO that referenced this pull request Jun 20, 2019
…tion#477)

* Add global_start_time as a serializable_field.
* The default value for global_start_time is None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants