Skip to content

Commit

Permalink
Fix tile_width property in HipsSurveyProperties class
Browse files Browse the repository at this point in the history
  • Loading branch information
adl1995 committed Jul 18, 2017
1 parent 60a5d95 commit 46c78a0
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 46c78a0

Please sign in to comment.