Skip to content

Commit

Permalink
Merge pull request #37 from lsst/tickets/DM-40555
Browse files Browse the repository at this point in the history
DM-40555: Skip filters in look-up table that are not in the band list.
  • Loading branch information
erykoff committed Sep 21, 2023
2 parents b770f35 + c5228c9 commit 0e55f26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fgcm/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '3.10.1'
__version__ = '3.10.2'

__version_info__ = __version__.split('.')
4 changes: 4 additions & 0 deletions fgcm/fgcmStars.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,10 @@ def loadStars(self, fgcmPars,

# First, we have the filterNames
for filterIndex,filterName in enumerate(self.lutFilterNames):
if self.filterToBand[filterName] not in self.bands:
# This LUT filter is not in the list of bands; we can skip it.
continue

try:
bandIndex = self.bands.index(self.filterToBand[filterName])
except KeyError:
Expand Down

0 comments on commit 0e55f26

Please sign in to comment.