hipspy / hips

Python library to handle HiPS
https://hips.readthedocs.io
13 stars 16 forks source link

Method HipsSurveyProperties.tile_access_url returns incorrect results #51

Closed tboch closed 7 years ago

tboch commented 7 years ago

Current method HipsSurveyProperties.tile_access_url is:

    @property
    def tile_access_url(self):
        """Tile access URL for a HiPS surveys"""
        return self.base_url + '/Norder' + str(self.hips_order) + '/Dir0/'

I see 2 problems with this:

Thus, I'd suggest adding 2 arguments and adjust the code so that the method signature becomes:

    def tile_access_url(self, order: int, tile_index: int):
    ...
tboch commented 7 years ago

Fixed by @adl1995 in #52