Details
-
Type:
Improvement
-
Status: Won't Fix
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw
-
Labels:None
-
Team:Data Release Production
Description
Currently, if there is a general failure reported in the flags of a measurement algorithm there is no convenient was to quickly scan all of the flags to determine what is causing the error. This is a request for a python convenience function that returns the names (or at least the enum/numbers) of all the set flags in a given schema.
This isn't exactly what you want, as it doesn't filter on whether a flag is set, but if e.g. base_SdssShape_flag is set, then you can print all the flags that might contribute to it via print record.extract("base_SdssShape_flag*"). That will return a name-value dict of all fields that match the given glob, and by strong convention any flag that could contribute to "base_SdssShape_flag" itself will be have a name that starts with that prefix.