Skip to content

Commit

Permalink
Take HiPS root dir from env variable SDSS_HIPS
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-katkov committed Nov 23, 2024
1 parent d18e819 commit 316a07b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/valis/routes/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ async def get_image(self,
For more details, refer to GitHub repository [https://github.com/cds-astro/hips2fits-cutout](https://github.com/cds-astro/hips2fits-cutout).
"""

HIPS_ROOT = "/data/sdss/sas/sdsswork/sandbox/data-viz/hips/sdsswork/lvm"
hips_path = f"{HIPS_ROOT}/{version}/{hips}/"
SDSS_HIPS = os.getenv("SDSS_HIPS")
hips_path = f"{SDSS_HIPS}/{version}/{hips}/"

# Check if HiPS path exists
if not os.path.exists(hips_path):
Expand Down

0 comments on commit 316a07b

Please sign in to comment.