Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Merge branch 'debug'
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Mar 1, 2024
2 parents 74f2bbe + 91054d1 commit 2d0f47f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
output-dir: wheelhouse
config-file: "{package}/pyproject.toml"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl

Expand All @@ -48,6 +48,6 @@ jobs:
- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
1 change: 0 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ build:
jobs:
pre_build:
- ford fortran_docs.md
- pip install pyshtools
- DOC_BUILD=1 pip install .
python:
install:
Expand Down
17 changes: 12 additions & 5 deletions swiftest/shgrav.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@
#

from .constants import GC
import os

try:
import pyshtools as pysh
PYSHTOOLS_AVAILABLE = False

if 'READTHEDOCS' in os.environ:
# Assume pyshtools is available when building on ReadTheDocs
PYSHTOOLS_AVAILABLE = True
except ModuleNotFoundError:
PYSHTOOLS_AVAILABLE = False
print("pyshtools is not installed. Some features will be unavailable.")
else:
try:
import pyshtools as pysh
PYSHTOOLS_AVAILABLE = True
except ModuleNotFoundError:
print("pyshtools is not installed. Some features will be unavailable.")


if PYSHTOOLS_AVAILABLE:

Expand Down

0 comments on commit 2d0f47f

Please sign in to comment.