Skip to content

Commit

Permalink
do not break when None of the specified pixels are in the coverage map
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobic committed Jun 7, 2021
1 parent 1a575d0 commit 8c5a74b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion redmapper/cluster_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,13 @@ def _setup(self):
# read in mask (if available)
# This will read in the mask and maskgals
# Will work with any type of mask
self.mask = get_mask(self.config)

try:
self.mask = get_mask(self.config)
except RuntimeError as e:
# Do not break if the pixel is outside the coverage map.
self.config.logger.info(repr(e))
return False

# read in the depth structure
try:
Expand Down

0 comments on commit 8c5a74b

Please sign in to comment.