Skip to content
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

Tweak the Python bindings for KeyFrame, Fraction #628

Merged
merged 3 commits into from Jan 29, 2021

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Jan 29, 2021

I screwed up the slot name for Fraction's string representation (__str__ not __string__, dummy!), so this PR fixes that.

It also gets rid of the Keyframe(std::vector<Coordinate>) constructor, which as SWIG points out in an emitted warning will shadow Keyframe(std::vector<Point>) or vice versa, and the Point version is far more useful. The aliased names for the arguments are also removed, on the off chance they're part of what's messing up SWIG on Ubuntu 16.04.

The Python code expects __str__() on a Fraction to return a
"{num}:{den}" representation, which __repr__() no longer does.
@ferdnyc ferdnyc added the bindings libopenshot's Python or Ruby interface bindings label Jan 29, 2021
@codecov
Copy link

codecov bot commented Jan 29, 2021

Codecov Report

Merging #628 (f41d989) into develop (aed0052) will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #628      +/-   ##
===========================================
- Coverage    51.89%   51.85%   -0.04%     
===========================================
  Files          151      151              
  Lines        12341    12332       -9     
===========================================
- Hits          6404     6395       -9     
  Misses        5937     5937              
Impacted Files Coverage Δ
src/KeyFrame.cpp 85.82% <ø> (-0.18%) ⬇️
src/KeyFrame.h 100.00% <ø> (ø)
tests/KeyFrame_Tests.cpp 100.00% <ø> (ø)

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 aed0052...3ac7eb8. Read the comment docs.

@ferdnyc ferdnyc merged commit 0d522e1 into OpenShot:develop Jan 29, 2021
@ferdnyc ferdnyc deleted the bindings-tweaks branch January 29, 2021 09:11
@ferdnyc
Copy link
Contributor Author

ferdnyc commented Jan 31, 2021

Excellent: This worked to fix Ubuntu 16.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings libopenshot's Python or Ruby interface bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant