[PIPE2D-501] addFiberTraceSetToMask missing Created: 21/Dec/19 Updated: 05/Jan/21 Resolved: 25/Mar/20 |
|
| Status: | Won't Fix |
| Project: | DRP 2-D Pipeline |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Normal |
| Reporter: | hassan | Assignee: | hassan |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Story Points: | 1 | ||||||||
| Sprint: | 2DDRP-2021 A | ||||||||
| Description |
|
It is possible that the original method stella.utils.addFiberTraceSetToMask has been lost with the introduction of FiberTrace.getTrace(). Please confirm. If it is, an example implementation is provided below that can be used. from pfs.drp.stella import fiberMaskPlane def addFiberTraceSetToMask(mask, fiberTraceSet, display=None): mask.addMaskPlane(fiberMaskPlane) for ft in fiberTraceSet: ftMask = ft.trace.mask calexp.mask[ftMask.getBBox()] |= ftMask if display: display.setMaskPlaneColor(fiberMaskPlane, "GREEN") |
| Comments |
| Comment by price [ 05/Mar/20 ] |
|
Most of this function is accomplished by FiberTraceSet.applyToMask. We could add another method to accomplish the display.setMaskPlaneColor call, but that's probably something the user should control rather than something to set programmatically. |