Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Jim Bosch
Jim BoschReporter
Jim Bosch
Jim BoschLabels
Reviewers
Nate Lust
Story Points
1
RubinTeam
Data Release Production
Components
Sprint
None
Priority
Checklist
Checklist
Created September 22, 2018 at 8:35 AM
Updated May 10, 2022 at 4:53 PM
Resolved October 5, 2018 at 9:45 AM
In C++, it's natural to require an explicit template argument for templated functions whose template parameters only affect their return type. That doesn't work when wrapping normally with pybind11, which just sees a set of equivalent overloaded functions and blithely selects the first one defined.
The [Num-]Pythonic interface for functions like this would take a
dtype
argument to select the type returned, and this ticket will provide a helper class that makes that easy to implement.This is a spin-off from https://rubinobs.atlassian.net/browse/DM-15500#icft=DM-15500, where this helper code is now almost complete.
I'm calling this gen3-middleware because that's why I'm doing https://rubinobs.atlassian.net/browse/DM-15500#icft=DM-15500, even though this ticket is a few steps removed from the core gen3 work. TCAMs are welcome to reclassify.