Skip to content

Commit 7f4a9d2

Browse files
committed
change logic to only catch flag 32 to zero out
1 parent 572f1ed commit 7f4a9d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/coordio/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,8 @@ def unique_offset_flags(flags):
11761176
delta_dec = numpy.zeros(len(delta_ra))
11771177

11781178
# zero out things with flag 32 in them but delta_ra > 0
1179-
delta_ra[(delta_ra > 0) & (offset_flag > 0)] = 0.
1179+
flag_32 = numpy.array([32 & int(fl) for fl in offset_flag], dtype=bool)
1180+
delta_ra[(delta_ra > 0) & flag_32] = 0.
11801181
if check_valid_offset:
11811182
if program is None:
11821183
raise ValueError('Must provide program to check valid offsets!')

0 commit comments

Comments
 (0)