Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ab04d1d
add types for masking, fix types in pooch paths and add initial provi…
nvaytet May 6, 2024
1b9e13a
work on the raw events
nvaytet May 15, 2024
f8ab748
now use data binned in logical dimensions
nvaytet May 16, 2024
6500f99
update Powgen notebook
nvaytet May 17, 2024
f3924a1
also make dream workflow work
nvaytet May 17, 2024
b54d91f
remove param tables
nvaytet May 21, 2024
f2163ff
formatting
nvaytet May 21, 2024
f24e53f
Merge branch 'main' into add-masking
nvaytet May 21, 2024
edbfa09
fix tests
nvaytet May 21, 2024
6b6ac26
Apply automatic formatting
pre-commit-ci-lite[bot] May 21, 2024
ad54240
add some tests
nvaytet May 22, 2024
6134e3e
copy style of nexus utilities from esssans
nvaytet May 22, 2024
90ae8bb
Apply automatic formatting
pre-commit-ci-lite[bot] May 22, 2024
5e5f5ec
fix notebook
nvaytet May 22, 2024
8607995
Merge branch 'add-masking' of github.com:scipp/essdiffraction into ad…
nvaytet May 22, 2024
af1a897
fix imports for nexus and add nexus providers
nvaytet May 22, 2024
60dbca6
Apply automatic formatting
pre-commit-ci-lite[bot] May 22, 2024
80745c2
update nexus tests
nvaytet May 22, 2024
70ee501
Merge branch 'add-masking' of github.com:scipp/essdiffraction into ad…
nvaytet May 22, 2024
bfa3711
fix instrument_view
nvaytet May 23, 2024
7a941cc
fix dream reduction notebook
nvaytet May 23, 2024
ecca9ce
Update src/ess/dream/io/geant4.py
nvaytet May 29, 2024
da001b8
remove wavelength mask in dream notebook and also remove mention of b…
nvaytet May 29, 2024
5febee8
remove wavelength mask from powgen notebook
nvaytet May 29, 2024
0ab2596
fix indentation
nvaytet May 29, 2024
b83ebb8
DETECTOR_BANK_* -> DETECTOR_BANK_SIZES
nvaytet May 29, 2024
77e738e
remove commented code
nvaytet May 29, 2024
3d977a9
use different type to request data binned in dspacing and 2theta inst…
nvaytet May 29, 2024
ea5f681
fix docs
nvaytet May 29, 2024
264e4f2
Merge branch 'main' into add-masking
nvaytet May 29, 2024
78d7294
Merge branch 'main' into add-masking
nvaytet May 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 46 additions & 46 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@
import sys
from importlib.metadata import version as get_version

sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath("."))

# General information about the project.
project = 'ESSdiffraction'
copyright = '2024 Scipp contributors'
author = 'Scipp contributors'
project = "ESSdiffraction"
copyright = "2024 Scipp contributors"
author = "Scipp contributors"

html_show_sourcelink = True

extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.doctest',
'sphinx.ext.githubpages',
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'sphinx_autodoc_typehints',
'sphinx_copybutton',
'sphinx_design',
'nbsphinx',
'myst_parser',
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.doctest",
"sphinx.ext.githubpages",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx_autodoc_typehints",
"sphinx_copybutton",
"sphinx_design",
"nbsphinx",
"myst_parser",
]

try:
import sciline.sphinxext.domain_types # noqa: F401

extensions.append('sciline.sphinxext.domain_types')
extensions.append("sciline.sphinxext.domain_types")
except ModuleNotFoundError:
pass

Expand All @@ -56,13 +56,13 @@
myst_heading_anchors = 3

autodoc_type_aliases = {
'array_like': 'array_like',
"array_like": "array_like",
}

intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'numpy': ('https://numpy.org/doc/stable/', None),
'scipp': ('https://scipp.github.io/', None),
"python": ("https://docs.python.org/3", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"scipp": ("https://scipp.github.io/", None),
}

# autodocs includes everything, even irrelevant API internals. autosummary
Expand All @@ -79,40 +79,40 @@
# objects without namespace: numpy
"ndarray": "~numpy.ndarray",
}
typehints_defaults = 'comma'
typehints_defaults = "comma"
typehints_use_rtype = False


sciline_domain_types_prefix = 'ess.diffraction'
sciline_domain_types_prefix = "ess.diffraction"
sciline_domain_types_aliases = {
'scipp._scipp.core.DataArray': 'scipp.DataArray',
'scipp._scipp.core.Dataset': 'scipp.Dataset',
'scipp._scipp.core.DType': 'scipp.DType',
'scipp._scipp.core.Unit': 'scipp.Unit',
'scipp._scipp.core.Variable': 'scipp.Variable',
'scipp.core.data_group.DataGroup': 'scipp.DataGroup',
"scipp._scipp.core.DataArray": "scipp.DataArray",
"scipp._scipp.core.Dataset": "scipp.Dataset",
"scipp._scipp.core.DType": "scipp.DType",
"scipp._scipp.core.Unit": "scipp.Unit",
"scipp._scipp.core.Variable": "scipp.Variable",
"scipp.core.data_group.DataGroup": "scipp.DataGroup",
}


# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
source_suffix = ['.rst', '.md']
html_sourcelink_suffix = '' # Avoid .ipynb.txt extensions in sources
source_suffix = [".rst", ".md"]
html_sourcelink_suffix = "" # Avoid .ipynb.txt extensions in sources

# The master toctree document.
master_doc = 'index'
master_doc = "index"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#

release = get_version("essdiffraction")
version = ".".join(release.split('.')[:3]) # CalVer
version = ".".join(release.split(".")[:3]) # CalVer

warning_is_error = True

Expand All @@ -127,15 +127,15 @@
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = [
'_build',
'Thumbs.db',
'.DS_Store',
'**.ipynb_checkpoints',
'user-guide/sns-instruments/preprocess_files.ipynb',
"_build",
"Thumbs.db",
".DS_Store",
"**.ipynb_checkpoints",
"user-guide/sns-instruments/preprocess_files.ipynb",
]

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
Expand Down Expand Up @@ -200,14 +200,14 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]
html_css_files = []
html_js_files = ["anaconda-icon.js"]

# -- Options for HTMLHelp output ------------------------------------------

# Output file base name for HTML help builder.
htmlhelp_basename = 'essdiffractiondoc'
htmlhelp_basename = "essdiffractiondoc"

# -- Options for Matplotlib in notebooks ----------------------------------

Expand All @@ -223,7 +223,7 @@
# In addition, there is no need to make plots in doctest as the documentation
# build already tests if those plots can be made.
# So we simply disable plots in doctests.
doctest_global_setup = '''
doctest_global_setup = """
import numpy as np

try:
Expand All @@ -240,7 +240,7 @@ def do_not_plot(*args, **kwargs):
except ImportError:
# Scipp is not needed by docs if it is not installed.
pass
'''
"""

# Using normalize whitespace because many __str__ functions in scipp produce
# extraneous empty lines and it would look strange to include them in the docs.
Expand All @@ -255,5 +255,5 @@ def do_not_plot(*args, **kwargs):

linkcheck_ignore = [
# Specific lines in Github blobs cannot be found by linkcheck.
r'https?://github\.com/.*?/blob/[a-f0-9]+/.+?#',
r"https?://github\.com/.*?/blob/[a-f0-9]+/.+?#",
]
Loading