Open ysBach opened 3 years ago
Hi @ysBach,
Thanks for this note. In general we recommend that you use target lists as pure Python lists to prevent confusion. Creating object arrays will work for masking, but you can achieve a similar effect with the following syntax without numpy:
masked_targets = [target for target, m in zip(targets, mask) if m]
Let me know if this helps, or if I'm not understanding the problem, Brett
Hi @ysBach, any updates on this? If we should really consider supporting ndarray
s of FixedTarget
objects then I'm happy to investigate.
For some reason, I have
targets
innp.ndarray
. (I have to mask some targets frequently by comparing them (SkyCoord
objects) with a catalog table)The following code shows the problem:
A simple update to the source code may fix it
How do you think?