Skip to content

Commit

Permalink
use specsim from pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Jan 31, 2025
1 parent bf64311 commit 9110249
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 30 deletions.
38 changes: 9 additions & 29 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.

from __future__ import absolute_import, division, print_function, unicode_literals

import sys
import os
import os.path
from importlib import import_module
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand All @@ -27,17 +23,6 @@

# If your documentation needs a minimal Sphinx version, state it here.

try:
import sphinx.ext.napoleon
napoleon_extension = 'sphinx.ext.napoleon'
except ImportError:
try:
import sphinxcontrib.napoleon
napoleon_extension = 'sphinxcontrib.napoleon'
needs_sphinx = '1.2'
except ImportError:
needs_sphinx = '1.3'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
Expand All @@ -47,18 +32,18 @@
'sphinx.ext.todo',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.napoleon'
'sphinx.ext.napoleon',
'sphinx_rtd_theme'
]

# Configuration for intersphinx, copied from astropy.
intersphinx_mapping = {
'python': ('http://docs.python.org/', None),
# 'python3': ('http://docs.python.org/3/', path.abspath(path.join(path.dirname(__file__), 'local/python3links.inv'))),
'numpy': ('http://docs.scipy.org/doc/numpy/', None),
'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
'matplotlib': ('http://matplotlib.org/', None),
'astropy': ('http://docs.astropy.org/en/stable/', None),
'h5py': ('http://docs.h5py.org/en/latest/', None)
'python': ('https://docs.python.org/3/', None),
'numpy': ('https://numpy.org/doc/stable/', None),
'scipy': ('https://docs.scipy.org/doc/scipy/', None),
'matplotlib': ('https://matplotlib.org/stable/', None),
'astropy': ('https://docs.astropy.org/en/stable/', None),
'h5py': ('https://docs.h5py.org/en/latest/', None)
}

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -147,12 +132,7 @@
# a list of builtin themes.
#html_theme = 'default'
#html_theme = 'haiku'
try:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
pass
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ astropy==5.0
numba
healpy
speclite
specsim
fitsio
# Install desiutil separately since it is needed for the other installs.
# git+https://github.com/desihub/[email protected]#egg=desiutil
Expand All @@ -14,6 +15,6 @@ git+https://github.com/desihub/[email protected]#egg=desimodel
git+https://github.com/desihub/[email protected]#egg=desispec
# git+https://github.com/desihub/[email protected]#egg=desitarget
git+https://github.com/desihub/desitarget.git@main#egg=desitarget
git+https://github.com/desihub/specsim.git@main#egg=specsim
# git+https://github.com/desihub/specsim.git@main#egg=specsim
# simqso install script requires numpy, so install separately.
# git+https://github.com/imcgreer/[email protected]#egg=simqso

0 comments on commit 9110249

Please sign in to comment.