essdiffraction 24.6.0__tar.gz → 24.9.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.copier-answers.ess.yml +1 -1
  2. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.copier-answers.yml +3 -3
  3. essdiffraction-24.9.0/.github/ISSUE_TEMPLATE/blank.md +8 -0
  4. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.github/workflows/ci.yml +3 -1
  5. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.github/workflows/docs.yml +5 -1
  6. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.github/workflows/nightly_at_main.yml +1 -0
  7. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.github/workflows/nightly_at_release.yml +1 -0
  8. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.github/workflows/test.yml +18 -0
  9. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.github/workflows/unpinned.yml +1 -0
  10. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.gitignore +4 -0
  11. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.pre-commit-config.yaml +4 -4
  12. essdiffraction-24.9.0/.python-version +1 -0
  13. {essdiffraction-24.6.0/src/essdiffraction.egg-info → essdiffraction-24.9.0}/PKG-INFO +9 -5
  14. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/conda/meta.yaml +10 -2
  15. essdiffraction-24.9.0/docs/_templates/doc_version.html +2 -0
  16. essdiffraction-24.9.0/docs/about/bibliography.rst +4 -0
  17. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/about/index.md +8 -0
  18. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/api-reference/index.md +14 -3
  19. essdiffraction-24.9.0/docs/bibliography.bib +8 -0
  20. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/conf.py +24 -4
  21. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/user-guide/dream/dream-data-reduction.ipynb +101 -84
  22. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/user-guide/dream/dream-instrument-view.ipynb +25 -25
  23. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/user-guide/sns-instruments/POWGEN_data_reduction.ipynb +83 -75
  24. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/user-guide/sns-instruments/index.md +1 -0
  25. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/user-guide/sns-instruments/preprocess_files.ipynb +21 -21
  26. essdiffraction-24.9.0/docs/user-guide/sns-instruments/vanadium_processing.ipynb +391 -0
  27. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/pyproject.toml +22 -7
  28. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/base.in +4 -4
  29. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/base.txt +36 -44
  30. essdiffraction-24.9.0/requirements/basetest.in +12 -0
  31. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/basetest.txt +23 -9
  32. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/ci.txt +9 -9
  33. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/dev.txt +13 -13
  34. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/docs.in +2 -0
  35. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/docs.txt +57 -26
  36. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/make_base.py +9 -3
  37. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/mypy.txt +1 -1
  38. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/nightly.in +3 -3
  39. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/nightly.txt +23 -35
  40. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/static.txt +6 -6
  41. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/wheels.txt +1 -1
  42. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/diffraction/__init__.py +1 -1
  43. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/dream/__init__.py +5 -6
  44. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/dream/instrument_view.py +9 -8
  45. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/dream/io/__init__.py +4 -1
  46. essdiffraction-24.9.0/src/ess/dream/io/cif.py +48 -0
  47. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/dream/io/geant4.py +56 -61
  48. essdiffraction-24.9.0/src/ess/dream/io/nexus.py +54 -0
  49. essdiffraction-24.9.0/src/ess/dream/workflow.py +52 -0
  50. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/__init__.py +5 -4
  51. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/conversion.py +24 -8
  52. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/correction.py +14 -11
  53. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/filtering.py +2 -2
  54. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/grouping.py +9 -10
  55. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/masking.py +1 -1
  56. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/smoothing.py +1 -3
  57. essdiffraction-24.9.0/src/ess/powder/transform.py +89 -0
  58. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/types.py +44 -75
  59. {essdiffraction-24.6.0/src/ess/powder/external → essdiffraction-24.9.0/src/ess/snspowder}/powgen/__init__.py +10 -6
  60. {essdiffraction-24.6.0/src/ess/powder/external → essdiffraction-24.9.0/src/ess/snspowder}/powgen/beamline.py +5 -22
  61. essdiffraction-24.6.0/src/ess/powder/external/__init__.py → essdiffraction-24.9.0/src/ess/snspowder/powgen/calibration.py +9 -10
  62. {essdiffraction-24.6.0/src/ess/powder/external → essdiffraction-24.9.0/src/ess/snspowder}/powgen/data.py +24 -20
  63. {essdiffraction-24.6.0/src/ess/powder/external → essdiffraction-24.9.0/src/ess/snspowder}/powgen/instrument_view.py +3 -3
  64. essdiffraction-24.9.0/src/ess/snspowder/powgen/peaks.py +134 -0
  65. essdiffraction-24.9.0/src/ess/snspowder/powgen/workflow.py +30 -0
  66. {essdiffraction-24.6.0 → essdiffraction-24.9.0/src/essdiffraction.egg-info}/PKG-INFO +9 -5
  67. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/essdiffraction.egg-info/SOURCES.txt +18 -9
  68. essdiffraction-24.9.0/src/essdiffraction.egg-info/requires.txt +15 -0
  69. essdiffraction-24.9.0/tests/dream/geant4_reduction_test.py +203 -0
  70. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/tests/dream/instrument_view_test.py +2 -1
  71. essdiffraction-24.9.0/tests/dream/io/cif_test.py +49 -0
  72. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/tests/dream/io/geant4_test.py +33 -27
  73. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/tests/dream/io/nexus_test.py +30 -30
  74. essdiffraction-24.9.0/tests/package_test.py +20 -0
  75. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/tests/powder/conversion_test.py +1 -1
  76. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/tests/powder/correction_test.py +2 -1
  77. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/tests/powder/filtering_test.py +4 -9
  78. essdiffraction-24.9.0/tests/powder/transform_test.py +87 -0
  79. {essdiffraction-24.6.0/tests/powder → essdiffraction-24.9.0/tests/snspowder/powgen}/load_test.py +6 -5
  80. {essdiffraction-24.6.0/tests/powder/external → essdiffraction-24.9.0/tests/snspowder}/powgen/powgen_reduction_test.py +45 -6
  81. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/tox.ini +6 -2
  82. essdiffraction-24.6.0/.github/ISSUE_TEMPLATE/blank.md +0 -8
  83. essdiffraction-24.6.0/docs/_templates/doc_version.html +0 -2
  84. essdiffraction-24.6.0/requirements/basetest.in +0 -6
  85. essdiffraction-24.6.0/src/ess/dream/io/nexus.py +0 -144
  86. essdiffraction-24.6.0/src/ess/powder/external/powgen/types.py +0 -19
  87. essdiffraction-24.6.0/src/ess/powder/uncertainty.py +0 -52
  88. essdiffraction-24.6.0/src/essdiffraction.egg-info/requires.txt +0 -10
  89. essdiffraction-24.6.0/tests/dream/geant4_reduction_test.py +0 -147
  90. essdiffraction-24.6.0/tests/package_test.py +0 -7
  91. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.github/ISSUE_TEMPLATE/high-level-requirement.yml +0 -0
  92. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.github/dependabot.yml +0 -0
  93. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.github/workflows/python-version-ci +0 -0
  94. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/.github/workflows/release.yml +0 -0
  95. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/CODE_OF_CONDUCT.md +0 -0
  96. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/CONTRIBUTING.md +0 -0
  97. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/LICENSE +0 -0
  98. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/MANIFEST.in +0 -0
  99. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/README.md +0 -0
  100. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/_static/anaconda-icon.js +0 -0
  101. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/_static/favicon.svg +0 -0
  102. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/_static/logo-dark.svg +0 -0
  103. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/_static/logo.svg +0 -0
  104. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/_templates/class-template.rst +0 -0
  105. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/_templates/module-template.rst +0 -0
  106. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/developer/coding-conventions.md +0 -0
  107. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/developer/dependency-management.md +0 -0
  108. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/developer/getting-started.md +0 -0
  109. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/developer/index.md +0 -0
  110. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/index.md +0 -0
  111. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/user-guide/dream/index.md +0 -0
  112. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/docs/user-guide/index.md +0 -0
  113. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/ci.in +0 -0
  114. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/dev.in +0 -0
  115. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/mypy.in +0 -0
  116. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/static.in +0 -0
  117. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/test.in +0 -0
  118. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/test.txt +0 -0
  119. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/requirements/wheels.in +0 -0
  120. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/resources/logo.svg +0 -0
  121. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/setup.cfg +0 -0
  122. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/diffraction/py.typed +0 -0
  123. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/dream/data.py +0 -0
  124. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/dream/py.typed +0 -0
  125. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/_util.py +0 -0
  126. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/logging.py +0 -0
  127. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/ess/powder/py.typed +0 -0
  128. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/essdiffraction.egg-info/dependency_links.txt +0 -0
  129. {essdiffraction-24.6.0 → essdiffraction-24.9.0}/src/essdiffraction.egg-info/top_level.txt +0 -0
@@ -1,3 +1,3 @@
1
1
  # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
- _commit: 847e5e4
2
+ _commit: 0951a4b
3
3
  _src_path: https://github.com/scipp/ess_template
@@ -1,13 +1,13 @@
1
1
  # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
- _commit: afbe5c7
2
+ _commit: 75b9a8f
3
3
  _src_path: gh:scipp/copier_template
4
4
  description: Diffraction data reduction for the European Spallation Source
5
5
  max_python: '3.12'
6
6
  min_python: '3.10'
7
7
  namespace_package: ess
8
- nightly_deps: scipp,scippnexus,sciline,plopp,scippneutron
8
+ nightly_deps: scipp,scippnexus,sciline,plopp,scippneutron,essreduce
9
9
  orgname: scipp
10
10
  prettyname: ESSdiffraction
11
11
  projectname: essdiffraction
12
- related_projects: Scipp,ScippNexus,ScippNeutron,Sciline,Plopp
12
+ related_projects: Scipp,ScippNexus,ScippNeutron,Sciline,Plopp,ESSreduce
13
13
  year: 2024
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: Blank
3
+ about: General issue that does not fit another category
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
@@ -27,7 +27,7 @@ jobs:
27
27
  - uses: pre-commit/action@v3.0.1
28
28
  with:
29
29
  extra_args: --all-files
30
- - uses: pre-commit-ci/lite-action@v1.0.2
30
+ - uses: pre-commit-ci/lite-action@v1.0.3
31
31
  if: always()
32
32
  with:
33
33
  msg: Apply automatic formatting
@@ -46,6 +46,7 @@ jobs:
46
46
  os-variant: ${{ matrix.os }}
47
47
  python-version: ${{ matrix.python.version }}
48
48
  tox-env: ${{ matrix.python.tox-env }}
49
+ secrets: inherit
49
50
 
50
51
  docs:
51
52
  needs: tests
@@ -54,3 +55,4 @@ jobs:
54
55
  publish: false
55
56
  linkcheck: ${{ contains(matrix.variant.os, 'ubuntu') && github.ref == 'refs/heads/main' }}
56
57
  branch: ${{ github.head_ref == '' && github.ref_name || github.head_ref }}
58
+ secrets: inherit
@@ -42,6 +42,10 @@ jobs:
42
42
  docs:
43
43
  name: Build documentation
44
44
  runs-on: 'ubuntu-22.04'
45
+ env:
46
+ ESS_PROTECTED_FILESTORE_USERNAME: ${{ secrets.ESS_PROTECTED_FILESTORE_USERNAME }}
47
+ ESS_PROTECTED_FILESTORE_PASSWORD: ${{ secrets.ESS_PROTECTED_FILESTORE_PASSWORD }}
48
+
45
49
  steps:
46
50
  - run: sudo apt install --yes graphviz pandoc
47
51
  - uses: actions/checkout@v4
@@ -65,7 +69,7 @@ jobs:
65
69
  name: docs_html
66
70
  path: html/
67
71
 
68
- - uses: JamesIves/github-pages-deploy-action@v4.6.0
72
+ - uses: JamesIves/github-pages-deploy-action@v4.6.4
69
73
  if: ${{ inputs.publish }}
70
74
  with:
71
75
  branch: gh-pages
@@ -31,3 +31,4 @@ jobs:
31
31
  os-variant: ${{ matrix.os }}
32
32
  python-version: ${{ matrix.python.version }}
33
33
  tox-env: ${{ matrix.python.tox-env }}
34
+ secrets: inherit
@@ -38,3 +38,4 @@ jobs:
38
38
  python-version: ${{ matrix.python.version }}
39
39
  tox-env: ${{ matrix.python.tox-env }}
40
40
  checkout_ref: ${{ needs.setup.outputs.release_tag }}
41
+ secrets: inherit
@@ -41,8 +41,26 @@ on:
41
41
  type: string
42
42
 
43
43
  jobs:
44
+ package-test:
45
+ runs-on: ${{ inputs.os-variant }}
46
+
47
+ steps:
48
+ - uses: actions/checkout@v4
49
+ with:
50
+ ref: ${{ inputs.checkout_ref }}
51
+ - uses: actions/setup-python@v5
52
+ with:
53
+ python-version: ${{ inputs.python-version }}
54
+ - run: python -m pip install --upgrade pip
55
+ - run: python -m pip install .
56
+ - run: python tests/package_test.py
57
+ name: Run package tests
58
+
44
59
  test:
45
60
  runs-on: ${{ inputs.os-variant }}
61
+ env:
62
+ ESS_PROTECTED_FILESTORE_USERNAME: ${{ secrets.ESS_PROTECTED_FILESTORE_USERNAME }}
63
+ ESS_PROTECTED_FILESTORE_PASSWORD: ${{ secrets.ESS_PROTECTED_FILESTORE_PASSWORD }}
46
64
 
47
65
  steps:
48
66
  - uses: actions/checkout@v4
@@ -38,3 +38,4 @@ jobs:
38
38
  python-version: ${{ matrix.python.version }}
39
39
  tox-env: ${{ matrix.python.tox-env }}
40
40
  checkout_ref: ${{ needs.setup.outputs.release_tag }}
41
+ secrets: inherit
@@ -4,11 +4,13 @@ dist
4
4
  html
5
5
  .tox
6
6
  *.egg-info
7
+ uv.lock # we lock dependencies with pip-compile, not uv
7
8
 
8
9
  *.sw?
9
10
 
10
11
  # Environments
11
12
  venv
13
+ .venv
12
14
 
13
15
  # Caches
14
16
  .clangd/
@@ -20,6 +22,7 @@ __pycache__/
20
22
  .pytest_cache
21
23
  .mypy_cache
22
24
  docs/generated/
25
+ .ruff_cache
23
26
 
24
27
  # Editor settings
25
28
  .idea/
@@ -38,3 +41,4 @@ docs/generated/
38
41
  *.cif
39
42
  *.rcif
40
43
  *.ort
44
+ *.zip
@@ -1,6 +1,6 @@
1
1
  repos:
2
2
  - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v4.5.0
3
+ rev: v4.6.0
4
4
  hooks:
5
5
  - id: check-added-large-files
6
6
  - id: check-json
@@ -14,14 +14,14 @@ repos:
14
14
  args: [ --markdown-linebreak-ext=md ]
15
15
  exclude: '\.svg'
16
16
  - repo: https://github.com/kynan/nbstripout
17
- rev: 0.6.0
17
+ rev: 0.7.1
18
18
  hooks:
19
19
  - id: nbstripout
20
20
  types: [ "jupyter" ]
21
21
  args: [ "--drop-empty-cells",
22
22
  "--extra-keys 'metadata.language_info.version cell.metadata.jp-MarkdownHeadingCollapsed cell.metadata.pycharm'" ]
23
23
  - repo: https://github.com/astral-sh/ruff-pre-commit
24
- rev: v0.4.1
24
+ rev: v0.6.2
25
25
  hooks:
26
26
  - id: ruff
27
27
  args: [ --fix ]
@@ -29,7 +29,7 @@ repos:
29
29
  - id: ruff-format
30
30
  types_or: [ python, pyi ]
31
31
  - repo: https://github.com/codespell-project/codespell
32
- rev: v2.2.6
32
+ rev: v2.3.0
33
33
  hooks:
34
34
  - id: codespell
35
35
  additional_dependencies:
@@ -0,0 +1 @@
1
+ 3.10
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: essdiffraction
3
- Version: 24.6.0
3
+ Version: 24.9.0
4
4
  Summary: Diffraction data reduction for the European Spallation Source
5
5
  Author: Scipp contributors
6
6
  License: BSD 3-Clause License
@@ -51,15 +51,19 @@ Requires-Python: >=3.10
51
51
  Description-Content-Type: text/markdown
52
52
  License-File: LICENSE
53
53
  Requires-Dist: dask
54
- Requires-Dist: essreduce
54
+ Requires-Dist: essreduce>=24.08.2
55
55
  Requires-Dist: graphviz
56
- Requires-Dist: numpy<2.0.0
56
+ Requires-Dist: numpy
57
57
  Requires-Dist: plopp
58
58
  Requires-Dist: pythreejs
59
59
  Requires-Dist: sciline>=24.06.0
60
- Requires-Dist: scipp>=23.8.0
61
- Requires-Dist: scippneutron>=23.9.0
60
+ Requires-Dist: scipp>=24.09.1
61
+ Requires-Dist: scippneutron>=24.9.0
62
62
  Requires-Dist: scippnexus>=23.12.0
63
+ Provides-Extra: test
64
+ Requires-Dist: pandas; extra == "test"
65
+ Requires-Dist: pooch; extra == "test"
66
+ Requires-Dist: pytest; extra == "test"
63
67
 
64
68
  [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
65
69
  [![PyPI badge](http://img.shields.io/pypi/v/essdiffraction.svg)](https://pypi.python.org/pypi/essdiffraction)
@@ -9,6 +9,7 @@ source:
9
9
 
10
10
  {% set pyproject = load_file_data('pyproject.toml') %}
11
11
  {% set dependencies = pyproject.get('project', {}).get('dependencies', {}) %}
12
+ {% set test_dependencies = pyproject.get('project', {}).get('optional-dependencies', {}).get('test', {}) %}
12
13
 
13
14
 
14
15
  requirements:
@@ -18,8 +19,9 @@ requirements:
18
19
  run:
19
20
  - python>=3.10
20
21
 
22
+ {# Conda does not allow spaces between package name and version, so remove them #}
21
23
  {% for package in dependencies %}
22
- - {% if package == "graphviz" %}python-graphviz{% else %}{{ package }}{% endif %}
24
+ - {% if package == "graphviz" %}python-graphviz{% else %}{{ package|replace(" ", "") }}{% endif %}
23
25
  {% endfor %}
24
26
 
25
27
 
@@ -27,7 +29,13 @@ test:
27
29
  imports:
28
30
  - ess.diffraction
29
31
  requires:
30
- - pytest
32
+
33
+ {# Conda does not allow spaces between package name and version, so remove them #}
34
+ {% for package in test_dependencies %}
35
+ - {% if package == "graphviz" %}python-graphviz{% else %}{{ package|replace(" ", "") }}{% endif %}
36
+ {% endfor %}
37
+
38
+
31
39
  source_files:
32
40
  - pyproject.toml
33
41
  - tests/
@@ -0,0 +1,2 @@
1
+ <!-- This will display the version of the docs -->
2
+ Current ESSdiffraction version: {{ version }} (<a href="https://github.com/scipp/essdiffraction/releases">older versions</a>).
@@ -0,0 +1,4 @@
1
+ Bibliography
2
+ ============
3
+
4
+ .. bibliography::
@@ -24,3 +24,11 @@ Simply download the archive, unzip and view locally in a web browser.
24
24
  ## Source code and development
25
25
 
26
26
  ESSdiffraction is hosted and developed [on GitHub](https://github.com/scipp/essdiffraction).
27
+
28
+ ```{toctree}
29
+ ---
30
+ hidden:
31
+ ---
32
+
33
+ bibliography
34
+ ```
@@ -27,9 +27,6 @@
27
27
  grouping
28
28
  smoothing
29
29
  types
30
- uncertainty
31
-
32
- external.powgen
33
30
  ```
34
31
 
35
32
  ## ESSdream
@@ -43,6 +40,7 @@
43
40
  :toctree: ../generated/functions
44
41
 
45
42
  instrument_view
43
+ DreamGeant4Workflow
46
44
  ```
47
45
 
48
46
  ### Submodules
@@ -56,3 +54,16 @@
56
54
  data
57
55
  io
58
56
  ```
57
+
58
+ ## SNS powder
59
+
60
+ ```{eval-rst}
61
+ .. currentmodule:: ess.snspowder
62
+
63
+ .. autosummary::
64
+ :toctree: ../generated/modules
65
+ :template: module-template.rst
66
+ :recursive:
67
+
68
+ powgen
69
+ ```
@@ -0,0 +1,8 @@
1
+ @book{Arblaster:2018,
2
+ author = {John W. Arblaster},
3
+ year = {2018},
4
+ title = {Selected Values of the Crystallographic Properties of the Elements},
5
+ publisher = {ASM International},
6
+ ISBN = {978-1-62708-154-2},
7
+ url = {https://www.asminternational.org/selected-values-of-the-crystallographic-properties-of-the-elements/results/-/journal_content/56/39867022/PUBLICATION/}
8
+ }
@@ -1,12 +1,18 @@
1
- # -*- coding: utf-8 -*-
1
+ # SPDX-License-Identifier: BSD-3-Clause
2
+ # Copyright (c) 2024 Scipp contributors (https://github.com/scipp)
2
3
 
3
4
  import doctest
4
5
  import os
5
6
  import sys
7
+ from importlib.metadata import PackageNotFoundError
6
8
  from importlib.metadata import version as get_version
7
9
 
10
+ from sphinx.util import logging
11
+
8
12
  sys.path.insert(0, os.path.abspath("."))
9
13
 
14
+ logger = logging.getLogger(__name__)
15
+
10
16
  # General information about the project.
11
17
  project = "ESSdiffraction"
12
18
  copyright = "2024 Scipp contributors"
@@ -26,6 +32,7 @@ extensions = [
26
32
  "sphinx_autodoc_typehints",
27
33
  "sphinx_copybutton",
28
34
  "sphinx_design",
35
+ "sphinxcontrib.bibtex",
29
36
  "nbsphinx",
30
37
  "myst_parser",
31
38
  ]
@@ -34,6 +41,8 @@ try:
34
41
  import sciline.sphinxext.domain_types # noqa: F401
35
42
 
36
43
  extensions.append("sciline.sphinxext.domain_types")
44
+ # See https://github.com/tox-dev/sphinx-autodoc-typehints/issues/457
45
+ suppress_warnings = ["config.cache"]
37
46
  except ModuleNotFoundError:
38
47
  pass
39
48
 
@@ -110,9 +119,15 @@ master_doc = "index"
110
119
  # |version| and |release|, also used in various other places throughout the
111
120
  # built documents.
112
121
  #
113
-
114
- release = get_version("essdiffraction")
115
- version = ".".join(release.split(".")[:3]) # CalVer
122
+ try:
123
+ release = get_version("essdiffraction")
124
+ version = ".".join(release.split('.')[:3]) # CalVer
125
+ except PackageNotFoundError:
126
+ logger.info(
127
+ "Warning: determining version from package metadata failed, falling back to "
128
+ "a dummy version number."
129
+ )
130
+ release = version = "0.0.0-dev"
116
131
 
117
132
  warning_is_error = True
118
133
 
@@ -157,6 +172,7 @@ html_theme_options = {
157
172
  "image_dark": "_static/logo-dark.svg",
158
173
  },
159
174
  "external_links": [
175
+ {"name": "ESSreduce", "url": "https://scipp.github.io/essreduce"},
160
176
  {"name": "Plopp", "url": "https://scipp.github.io/plopp"},
161
177
  {"name": "Sciline", "url": "https://scipp.github.io/sciline"},
162
178
  {"name": "Scipp", "url": "https://scipp.github.io"},
@@ -257,3 +273,7 @@ linkcheck_ignore = [
257
273
  # Specific lines in Github blobs cannot be found by linkcheck.
258
274
  r"https?://github\.com/.*?/blob/[a-f0-9]+/.+?#",
259
275
  ]
276
+
277
+ # -- Options for bibtex ---------------------------------------------------
278
+ bibtex_bibfiles = ["bibliography.bib"]
279
+ bibtex_reference_style = "label"