UnpackApdbFlags

class lsst.ap.association.UnpackApdbFlags(flag_map_file, table_name)

Bases: object

Class for unpacking bits from integer flag fields stored in the Apdb.

Attributes:
flag_map_filestr

Absolute or relative path to a yaml file specifiying mappings of flags to integer bits.

table_namestr

Name of the Apdb table the integer bit data are coming from.

Methods Summary

unpack(input_flag_values, flag_name)

Determine individual boolean flags from an input array of unsigned ints.

Methods Documentation

unpack(input_flag_values, flag_name)

Determine individual boolean flags from an input array of unsigned ints.

Parameters:
input_flag_valuesarray-like of type uint

Array of integer flags to unpack.

flag_namestr

Apdb column name of integer flags to unpack. Names of packed int flags are given by the flag_map_file.

Returns:
output_flagsnumpy.ndarray

Numpy named tuple of booleans.