Skip to content

Commit

Permalink
Merge pull request #77 from adl1995/tile_width_fix
Browse files Browse the repository at this point in the history
Fix tile_width property in HipsSurveyProperties class
  • Loading branch information
cdeil committed Jul 18, 2017
2 parents 60a5d95 + 46c78a0 commit 7116cd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hips/tiles/surveys.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ def hips_order(self) -> int:
@property
def tile_width(self) -> int:
"""HiPS tile width"""
return int(self.data['hips_tile_width']) or 512
try:
return int(self.data['hips_tile_width'])
except KeyError:
return 512

@property
def tile_format(self) -> str:
Expand Down

0 comments on commit 7116cd8

Please sign in to comment.