diff --git a/hips/tiles/tests/test_tile.py b/hips/tiles/tests/test_tile.py index 535b005..a6c2107 100644 --- a/hips/tiles/tests/test_tile.py +++ b/hips/tiles/tests/test_tile.py @@ -11,7 +11,7 @@ def setup_class(cls): filename = get_pkg_data_filename('data/properties.txt') hips_description = HipsDescription.read(filename) - cls.tile = HipsTile(hips_description, 6, 24185, 'jpg') + cls.tile = HipsTile(hips_description, 6, 24185, 'jpg', 512) cls.tile.base_url = 'http://alasky.unistra.fr/DSS/DSSColor' def test_base_url(self): diff --git a/hips/tiles/tile.py b/hips/tiles/tile.py index 4f0fd3e..a55aa20 100644 --- a/hips/tiles/tile.py +++ b/hips/tiles/tile.py @@ -29,6 +29,8 @@ class HipsTile: Order of the HiPS ipix : `int` HEALPix pixel number + tile_width : `int` + Width of HiPS tile format : `format` Format of HiPS tile data : `list` @@ -54,10 +56,11 @@ class HipsTile: [4261 3581 3842 ..., 7095 6390 6191]] """ - def __init__(self, hips_description: HipsDescription, order: int, ipix: int, format: str, data: list=None) -> None: + def __init__(self, hips_description: HipsDescription, order: int, ipix: int, format: str, data: list=None, tile_width: int=512) -> None: self.hips_description = hips_description self.order = order self.ipix = ipix + self.tile_width = tile_width self.format = format self.data = data