Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw
-
Labels:
-
Story Points:0.5
-
Epic Link:
-
Sprint:Alert Production S17 - 4
-
Team:Alert Production
Description
The ast::FrameSet returned by Transform.getFrameSet is not immutable in Python, and modifying it modifies the frame set owned by the transform. In C++ the returned FrameSet is immutable, but that is impossible to enforce in Python, so the obvious fix is for the Python wrapper to return a copy.
A trivial fix: use a lambda in the pybind11 wrapper for getFrameSet to return a copy. I added a simple test and confirmed that it failed on the old code.