Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: daf_butler, sphgeom
-
Team:External
-
Urgent?:No
Description
The support for duck-typed pixelization was lost in w.2021.42 daf_butler with the addition of the type assertion in SkyPixConstructionVisitor's visit method:
assert issubclass(PixelizationClass, Pixelization)
We've been relying on duck-typed Pixelization class for HEALPix pixelization. (This way Pixelization with the tiles approximated by ConvexPolygon can be implemented completely in Python.)
Here is what pybind11 docs says on this subject: https://pybind11-jagerman.readthedocs.io/en/stable/advanced.html#overriding-virtual-functions-in-python