Skip to content

Commit

Permalink
Merge pull request #2 from LSSTDESC/dev_20200717
Browse files Browse the repository at this point in the history
add code protection in sn_process when no pixel can be found
  • Loading branch information
pgris authored Jul 17, 2020
2 parents 14f9a32 + 4f1f548 commit 54dc9d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions sn_tools/sn_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ def processPatch(self, pointings, observations, j=0, output_q=None):
pixels = datapixels(observations, pointing['RA'], pointing['Dec'],
pointing['radius_RA'], pointing['radius_Dec'], self.remove_dithering, display=False)

if pixels is None:
return

# select pixels that are inside the original area
pixels_run = pixels
"""
Expand Down
2 changes: 1 addition & 1 deletion sn_tools/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__='v1.0.0'
__version__ = 'v1.0.1'
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__='v1.0.0'
__version__ = 'v1.0.1'

0 comments on commit 54dc9d5

Please sign in to comment.