Skip to content

Fix time strings for small fractional seconds - #2112

Open
SoulmatelynchVFX wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
SoulmatelynchVFX:codex/fix-otio-small-time-fractions
Open

SoulmatelynchVFX wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
SoulmatelynchVFX:codex/fix-otio-small-time-fractions

Conversation

@SoulmatelynchVFX

Copy link
Copy Markdown

Fixes #2107

Small fractional seconds could be printed in scientific notation before the formatter removed the leading zero. The conversion now emits a decimal fraction for those values and retains the existing six-digit limit and whole-second format.

The new C++ regression covers 50 microseconds, a small fraction after whole seconds, one sample at 24 kHz, and a sub-microsecond value. All 10 CTest targets passed in a native Windows Release build.

Assisted-by: Codex / GPT-6

@linux-foundation-easycla

linux-foundation-easycla Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: SoulmatelynchVFX / name: Seal Wang (95a4370)

@codecov-commenter

codecov-commenter commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.72%. Comparing base (f38b2cb) to head (622580c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2112      +/-   ##
==========================================
+ Coverage   86.70%   86.72%   +0.01%     
==========================================
  Files         186      186              
  Lines       13762    13767       +5     
  Branches     1280     1281       +1     
==========================================
+ Hits        11932    11939       +7     
+ Misses       1660     1658       -2     
  Partials      170      170              
Flag Coverage Δ
cpp-unittests 65.33% <100.00%> (+0.65%) ⬆️
py-unittests 83.85% <20.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/opentime/rationalTime.cpp 85.82% <100.00%> (+1.05%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Harness.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SoulmatelynchVFX
SoulmatelynchVFX force-pushed the codex/fix-otio-small-time-fractions branch from 95a4370 to 622580c Compare November 27, 2026 02:13
Signed-off-by: Seal Wang <soulmatelynch@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RationalTime::to_time_string gives a malformed or wrong string when the fractional second is below 0.0001

2 participants