Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmartradio committed Oct 10, 2023
1 parent 6aa4352 commit 7f3fe96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/ap/association/trailedSourceFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 120 in python/lsst/ap/association/trailedSourceFilter.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

E712

comparison to True should be 'if cond is True:' or 'if cond:'
trail_mask[edge_loc] = True

return trail_mask

0 comments on commit 7f3fe96

Please sign in to comment.