We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 572f1ed commit 7f4a9d2Copy full SHA for 7f4a9d2
src/coordio/utils.py
@@ -1176,7 +1176,8 @@ def unique_offset_flags(flags):
1176
delta_dec = numpy.zeros(len(delta_ra))
1177
1178
# zero out things with flag 32 in them but delta_ra > 0
1179
- delta_ra[(delta_ra > 0) & (offset_flag > 0)] = 0.
+ flag_32 = numpy.array([32 & int(fl) for fl in offset_flag], dtype=bool)
1180
+ delta_ra[(delta_ra > 0) & flag_32] = 0.
1181
if check_valid_offset:
1182
if program is None:
1183
raise ValueError('Must provide program to check valid offsets!')
0 commit comments