From 7f3fe968f70d86d554acc6453544b585149e4c78 Mon Sep 17 00:00:00 2001 From: Brianna Smart Date: Tue, 10 Oct 2023 14:45:37 -0700 Subject: [PATCH] Bugfix --- python/lsst/ap/association/trailedSourceFilter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lsst/ap/association/trailedSourceFilter.py b/python/lsst/ap/association/trailedSourceFilter.py index 15a6b64c..9321afa4 100644 --- a/python/lsst/ap/association/trailedSourceFilter.py +++ b/python/lsst/ap/association/trailedSourceFilter.py @@ -117,7 +117,7 @@ def _check_dia_source_trail(self, dia_sources, exposure_time, flags): trail_mask = (dia_sources.loc[:, "trailLength"].values[:] >= (self.config.max_trail_length*exposure_time)) - edge_loc = np.where(flags['ext_trailedSources_Naive_flag_edge'] is True) + edge_loc = np.where(flags['ext_trailedSources_Naive_flag_edge'] == True) trail_mask[edge_loc] = True return trail_mask