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

refactor: Define interface for generators #919

Merged
merged 10 commits into from
Aug 27, 2021

Conversation

paulgessinger
Copy link
Member

This is driven by the python binding implementation. std::function has
the downside of making pybind11 do a round trip through python. This
interface is equivalent, but slightly more complex. I think it's still
acceptable.

@paulgessinger paulgessinger added this to the next milestone Aug 4, 2021
@codecov
Copy link

codecov bot commented Aug 4, 2021

Codecov Report

Merging #919 (fa5a657) into main (8b6ae9c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #919   +/-   ##
=======================================
  Coverage   48.46%   48.46%           
=======================================
  Files         334      334           
  Lines       17067    17067           
  Branches     8074     8074           
=======================================
  Hits         8271     8271           
  Misses       3094     3094           
  Partials     5702     5702           

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 8b6ae9c...fa5a657. Read the comment docs.

@XiaocongAi XiaocongAi self-requested a review August 5, 2021 07:39
Copy link
Contributor

@XiaocongAi XiaocongAi left a comment

Choose a reason for hiding this comment

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

Looks nice. I have just one minor comment.

Copy link
Contributor

@XiaocongAi XiaocongAi left a comment

Choose a reason for hiding this comment

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

@paulgessinger Thank you for the changes. Approved.

paulgessinger and others added 5 commits August 23, 2021 09:06
This is driven by the python binding implementation. std::function has
the downside of making pybind11 do a round trip through python. This
interface is equivalent, but slightly more complex. I think it's still
acceptable.
@paulgessinger
Copy link
Member Author

@XiaocongAi can you reapprove?

@XiaocongAi XiaocongAi self-requested a review August 27, 2021 08:55
@paulgessinger paulgessinger merged commit b87b53c into acts-project:main Aug 27, 2021
@paulgessinger paulgessinger deleted the py/gen_if branch August 27, 2021 13:18
@paulgessinger paulgessinger modified the milestones: next, v12.0.1 Aug 30, 2021
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.

None yet

2 participants