Skip to content

Commit

Permalink
Merge pull request #52 from sot/suppress-healpix-version-warning
Browse files Browse the repository at this point in the history
Suppress the setuptools_scm warning
  • Loading branch information
taldcroft authored Jan 4, 2024
2 parents bee8099 + f956166 commit d8d5e97
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ska_helpers/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""

import os
import warnings
from functools import cache


Expand All @@ -26,3 +27,12 @@ def configure_ska_environment():
# potentially including subdirectories.
numba_cache_dir = os.path.join(os.path.expanduser("~"), ".ska3", "cache", "numba")
os.environ.setdefault("NUMBA_CACHE_DIR", numba_cache_dir)

# Suppress warning when importing astropy_healpix in a git repo.
# https://github.com/astropy/astropy-healpix/issues/211
warnings.filterwarnings(
"ignore",
category=UserWarning,
message="git archive did not support describe output",
module="setuptools_scm",
)

0 comments on commit d8d5e97

Please sign in to comment.