essdiffraction 23.12.0__tar.gz → 24.6.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 (134) hide show
  1. essdiffraction-24.6.0/.copier-answers.ess.yml +3 -0
  2. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.copier-answers.yml +4 -4
  3. essdiffraction-24.6.0/.github/ISSUE_TEMPLATE/blank.md +8 -0
  4. essdiffraction-24.6.0/.github/ISSUE_TEMPLATE/high-level-requirement.yml +89 -0
  5. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/ci.yml +7 -9
  6. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/docs.yml +5 -7
  7. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/nightly_at_main.yml +0 -3
  8. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/nightly_at_release.yml +0 -3
  9. essdiffraction-24.6.0/.github/workflows/python-version-ci +1 -0
  10. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/release.yml +9 -12
  11. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/test.yml +3 -6
  12. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/unpinned.yml +0 -3
  13. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.gitignore +1 -0
  14. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.pre-commit-config.yaml +8 -21
  15. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/LICENSE +1 -1
  16. {essdiffraction-23.12.0/src/essdiffraction.egg-info → essdiffraction-24.6.0}/PKG-INFO +7 -5
  17. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/conda/meta.yaml +11 -10
  18. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_templates/doc_version.html +1 -1
  19. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/about/index.md +1 -1
  20. essdiffraction-24.6.0/docs/api-reference/index.md +58 -0
  21. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/conf.py +60 -41
  22. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/developer/coding-conventions.md +1 -1
  23. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/developer/getting-started.md +1 -1
  24. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/developer/index.md +1 -1
  25. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/index.md +1 -1
  26. essdiffraction-24.6.0/docs/user-guide/dream/dream-data-reduction.ipynb +294 -0
  27. essdiffraction-24.6.0/docs/user-guide/dream/dream-instrument-view.ipynb +255 -0
  28. essdiffraction-24.6.0/docs/user-guide/dream/index.md +10 -0
  29. essdiffraction-24.6.0/docs/user-guide/index.md +10 -0
  30. {essdiffraction-23.12.0/docs/examples → essdiffraction-24.6.0/docs/user-guide/sns-instruments}/POWGEN_data_reduction.ipynb +75 -104
  31. essdiffraction-24.6.0/docs/user-guide/sns-instruments/index.md +12 -0
  32. {essdiffraction-23.12.0/docs/examples → essdiffraction-24.6.0/docs/user-guide/sns-instruments}/preprocess_files.ipynb +30 -24
  33. essdiffraction-24.6.0/pyproject.toml +117 -0
  34. essdiffraction-24.6.0/requirements/base.in +14 -0
  35. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/base.txt +57 -54
  36. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/basetest.in +2 -0
  37. essdiffraction-24.6.0/requirements/basetest.txt +33 -0
  38. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/ci.txt +13 -13
  39. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/dev.txt +43 -35
  40. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/docs.in +4 -0
  41. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/docs.txt +50 -47
  42. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/make_base.py +1 -4
  43. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/mypy.txt +1 -3
  44. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/nightly.in +3 -1
  45. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/nightly.txt +51 -63
  46. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/static.txt +7 -10
  47. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/wheels.txt +4 -10
  48. essdiffraction-24.6.0/setup.cfg +4 -0
  49. essdiffraction-24.6.0/src/ess/diffraction/__init__.py +16 -0
  50. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/ess/dream/__init__.py +10 -4
  51. essdiffraction-24.6.0/src/ess/dream/data.py +121 -0
  52. essdiffraction-24.6.0/src/ess/dream/instrument_view.py +154 -0
  53. essdiffraction-24.6.0/src/ess/dream/io/__init__.py +9 -0
  54. essdiffraction-24.6.0/src/ess/dream/io/geant4.py +208 -0
  55. essdiffraction-24.6.0/src/ess/dream/io/nexus.py +144 -0
  56. essdiffraction-24.6.0/src/ess/powder/__init__.py +47 -0
  57. essdiffraction-24.6.0/src/ess/powder/_util.py +22 -0
  58. essdiffraction-24.6.0/src/ess/powder/conversion.py +204 -0
  59. essdiffraction-24.6.0/src/ess/powder/correction.py +265 -0
  60. {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/external/__init__.py +1 -0
  61. {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/external/powgen/beamline.py +25 -9
  62. essdiffraction-24.6.0/src/ess/powder/external/powgen/data.py +148 -0
  63. {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/filtering.py +17 -43
  64. essdiffraction-24.6.0/src/ess/powder/grouping.py +35 -0
  65. {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/logging.py +3 -2
  66. essdiffraction-24.6.0/src/ess/powder/masking.py +97 -0
  67. {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/smoothing.py +1 -1
  68. essdiffraction-24.6.0/src/ess/powder/types.py +206 -0
  69. essdiffraction-24.6.0/src/ess/powder/uncertainty.py +52 -0
  70. {essdiffraction-23.12.0 → essdiffraction-24.6.0/src/essdiffraction.egg-info}/PKG-INFO +7 -5
  71. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/essdiffraction.egg-info/SOURCES.txt +42 -31
  72. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/essdiffraction.egg-info/requires.txt +3 -1
  73. essdiffraction-24.6.0/tests/dream/geant4_reduction_test.py +147 -0
  74. essdiffraction-24.6.0/tests/dream/instrument_view_test.py +70 -0
  75. essdiffraction-24.6.0/tests/dream/io/geant4_test.py +192 -0
  76. essdiffraction-24.6.0/tests/dream/io/nexus_test.py +86 -0
  77. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/tests/package_test.py +1 -1
  78. essdiffraction-23.12.0/tests/diffraction/powder/conversions_test.py → essdiffraction-24.6.0/tests/powder/conversion_test.py +36 -2
  79. essdiffraction-24.6.0/tests/powder/correction_test.py +317 -0
  80. essdiffraction-24.6.0/tests/powder/external/powgen/powgen_reduction_test.py +136 -0
  81. {essdiffraction-23.12.0/tests/diffraction → essdiffraction-24.6.0/tests/powder}/filtering_test.py +1 -2
  82. {essdiffraction-23.12.0/tests/diffraction → essdiffraction-24.6.0/tests/powder}/load_test.py +4 -5
  83. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/tox.ini +4 -4
  84. essdiffraction-23.12.0/.github/workflows/python-version-ci +0 -1
  85. essdiffraction-23.12.0/docs/api-reference/index.md +0 -44
  86. essdiffraction-23.12.0/docs/examples/index.md +0 -9
  87. essdiffraction-23.12.0/pyproject.toml +0 -87
  88. essdiffraction-23.12.0/requirements/base.in +0 -15
  89. essdiffraction-23.12.0/requirements/basetest.txt +0 -19
  90. essdiffraction-23.12.0/setup.cfg +0 -8
  91. essdiffraction-23.12.0/src/ess/diffraction/__init__.py +0 -56
  92. essdiffraction-23.12.0/src/ess/diffraction/correction.py +0 -125
  93. essdiffraction-23.12.0/src/ess/diffraction/external/powgen/data.py +0 -159
  94. essdiffraction-23.12.0/src/ess/diffraction/grouping.py +0 -81
  95. essdiffraction-23.12.0/src/ess/diffraction/powder/__init__.py +0 -14
  96. essdiffraction-23.12.0/src/ess/diffraction/powder/conversion.py +0 -157
  97. essdiffraction-23.12.0/src/ess/diffraction/powder/correction.py +0 -46
  98. essdiffraction-23.12.0/src/ess/diffraction/types.py +0 -117
  99. essdiffraction-23.12.0/src/ess/diffraction/uncertainty.py +0 -18
  100. essdiffraction-23.12.0/src/ess/dream/data.py +0 -34
  101. essdiffraction-23.12.0/src/ess/dream/io.py +0 -133
  102. essdiffraction-23.12.0/tests/diffraction/__init__.py +0 -2
  103. essdiffraction-23.12.0/tests/diffraction/external/powgen/powgen_reduction_test.py +0 -85
  104. essdiffraction-23.12.0/tests/diffraction/powder/__init__.py +0 -2
  105. essdiffraction-23.12.0/tests/diffraction/powder/corrections_test.py +0 -111
  106. essdiffraction-23.12.0/tests/dream/io_test.py +0 -77
  107. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/dependabot.yml +0 -0
  108. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/CODE_OF_CONDUCT.md +0 -0
  109. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/CONTRIBUTING.md +0 -0
  110. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/MANIFEST.in +0 -0
  111. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/README.md +0 -0
  112. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_static/anaconda-icon.js +0 -0
  113. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_static/favicon.svg +0 -0
  114. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_static/logo-dark.svg +0 -0
  115. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_static/logo.svg +0 -0
  116. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_templates/class-template.rst +0 -0
  117. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_templates/module-template.rst +0 -0
  118. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/developer/dependency-management.md +0 -0
  119. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/ci.in +0 -0
  120. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/dev.in +0 -0
  121. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/mypy.in +0 -0
  122. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/static.in +0 -0
  123. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/test.in +0 -0
  124. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/test.txt +0 -0
  125. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/wheels.in +0 -0
  126. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/resources/logo.svg +0 -0
  127. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/ess/diffraction/py.typed +0 -0
  128. /essdiffraction-23.12.0/tests/diffraction/external/__init__.py → /essdiffraction-24.6.0/src/ess/dream/py.typed +0 -0
  129. {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/external/powgen/__init__.py +0 -0
  130. {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/external/powgen/instrument_view.py +0 -0
  131. {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/external/powgen/types.py +0 -0
  132. /essdiffraction-23.12.0/tests/diffraction/external/powgen/__init__.py → /essdiffraction-24.6.0/src/ess/powder/py.typed +0 -0
  133. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/essdiffraction.egg-info/dependency_links.txt +0 -0
  134. {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/essdiffraction.egg-info/top_level.txt +0 -0
@@ -0,0 +1,3 @@
1
+ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
+ _commit: 847e5e4
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: 8cfdb1b
2
+ _commit: afbe5c7
3
3
  _src_path: gh:scipp/copier_template
4
4
  description: Diffraction data reduction for the European Spallation Source
5
- max_python: '3.11'
6
- min_python: '3.9'
5
+ max_python: '3.12'
6
+ min_python: '3.10'
7
7
  namespace_package: ess
8
8
  nightly_deps: scipp,scippnexus,sciline,plopp,scippneutron
9
9
  orgname: scipp
10
10
  prettyname: ESSdiffraction
11
11
  projectname: essdiffraction
12
12
  related_projects: Scipp,ScippNexus,ScippNeutron,Sciline,Plopp
13
- year: 2023
13
+ year: 2024
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: blank
3
+ about: A blank issue template
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
@@ -0,0 +1,89 @@
1
+ name: High-level requirement
2
+ description: Describe a high-level requirement
3
+ title: "[Requirement] "
4
+ labels: ["requirement"]
5
+ projects: []
6
+ body:
7
+ - type: markdown
8
+ attributes:
9
+ value: |
10
+ Thanks for taking the time to provide as many details as possible for this requirement!
11
+ - type: input
12
+ id: summary
13
+ attributes:
14
+ label: Executive summary
15
+ description: Provide a short summary of the requirement
16
+ placeholder: "Example: We need to correct for X when processing Y."
17
+ validations:
18
+ required: true
19
+ - type: textarea
20
+ id: context
21
+ attributes:
22
+ label: Context and background knowledge
23
+ description: |
24
+ - What is the context of this requirement?
25
+ - What background knowledge is required to understand it?
26
+ - Does this depend on previous tasks? Provide links!
27
+ - Is there follow-up work?
28
+ placeholder: "Example: See summary on Wikipedia, or the following paper."
29
+ validations:
30
+ required: true
31
+ - type: textarea
32
+ id: inputs
33
+ attributes:
34
+ label: Inputs
35
+ description: |
36
+ Describe in detail all the input data and data properties that are known.
37
+ This is not about test data (see below), but about general properties of data that will be used in practice.
38
+ placeholder: "Example: A single 1-D spectrum with a known wavelength range."
39
+ validations:
40
+ required: true
41
+ - type: textarea
42
+ id: methodology
43
+ attributes:
44
+ label: Methodology
45
+ description: |
46
+ Describe, e.g., the computation to be performed.
47
+ When linking to references, please refer to the specific section, page, or equation.
48
+ placeholder: "Remember you can write equations such as $n\\lambda = 2d\\sin(\\theta)$ using LaTeX syntax, as well as other Markdown formatting."
49
+ validations:
50
+ required: true
51
+ - type: textarea
52
+ id: outputs
53
+ attributes:
54
+ label: Outputs
55
+ description: |
56
+ Describe in detail all the output data and data properties.
57
+ This is not about test data (see below), but about general properties of data that will be used in practice.
58
+ placeholder: "Example: The position of the peak in the spectrum."
59
+ validations:
60
+ required: true
61
+ - type: dropdown
62
+ id: interfaces
63
+ attributes:
64
+ label: Which interfaces are required?
65
+ multiple: true
66
+ options:
67
+ - Integrated into reduction workflow
68
+ - Python module / function
69
+ - Python script
70
+ - Jupyter notebook
71
+ - Other (please describe in comments)
72
+ default: 0
73
+ validations:
74
+ required: true
75
+ - type: textarea
76
+ id: testcases
77
+ attributes:
78
+ label: Test cases
79
+ description: How can we test this requirement? Links to tests data and reference data, or other suggestions.
80
+ validations:
81
+ required: true
82
+ - type: textarea
83
+ id: comments
84
+ attributes:
85
+ label: Comments
86
+ description: Do you have other comments that do not fall in the above categories?
87
+ placeholder: "Example: Depends on issues #1234, blocked by #666."
88
+ validations:
89
+ required: false
@@ -1,6 +1,3 @@
1
- # SPDX-License-Identifier: BSD-3-Clause
2
- # Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3
-
4
1
  name: CI
5
2
 
6
3
  on:
@@ -24,15 +21,16 @@ jobs:
24
21
  run: |
25
22
  echo "min_python=$(cat .github/workflows/python-version-ci)" >> $GITHUB_OUTPUT
26
23
  echo "min_tox_env=py$(cat .github/workflows/python-version-ci | sed 's/\.//g')" >> $GITHUB_OUTPUT
27
- - uses: actions/setup-python@v4
24
+ - uses: actions/setup-python@v5
28
25
  with:
29
26
  python-version-file: '.github/workflows/python-version-ci'
30
- - run: python -m pip install --upgrade pip
31
- - run: python -m pip install -r requirements/ci.txt
32
- - run: tox -e static
33
- - uses: stefanzweifel/git-auto-commit-action@v5
27
+ - uses: pre-commit/action@v3.0.1
28
+ with:
29
+ extra_args: --all-files
30
+ - uses: pre-commit-ci/lite-action@v1.0.2
31
+ if: always()
34
32
  with:
35
- commit_message: Apply automatic formatting
33
+ msg: Apply automatic formatting
36
34
 
37
35
  tests:
38
36
  name: Tests
@@ -1,6 +1,3 @@
1
- # SPDX-License-Identifier: BSD-3-Clause
2
- # Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3
-
4
1
  name: Docs
5
2
 
6
3
  on:
@@ -47,11 +44,12 @@ jobs:
47
44
  runs-on: 'ubuntu-22.04'
48
45
  steps:
49
46
  - run: sudo apt install --yes graphviz pandoc
50
- - uses: actions/checkout@v3
47
+ - uses: actions/checkout@v4
51
48
  with:
52
49
  ref: ${{ inputs.branch == '' && github.ref_name || inputs.branch }}
50
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
53
51
  fetch-depth: 0 # history required so cmake can determine version
54
- - uses: actions/setup-python@v4
52
+ - uses: actions/setup-python@v5
55
53
  with:
56
54
  python-version-file: '.github/workflows/python-version-ci'
57
55
  - run: python -m pip install --upgrade pip
@@ -62,12 +60,12 @@ jobs:
62
60
  if: ${{ inputs.version == '' }}
63
61
  - run: tox -e linkcheck
64
62
  if: ${{ inputs.linkcheck }}
65
- - uses: actions/upload-artifact@v3
63
+ - uses: actions/upload-artifact@v4
66
64
  with:
67
65
  name: docs_html
68
66
  path: html/
69
67
 
70
- - uses: JamesIves/github-pages-deploy-action@v4.4.3
68
+ - uses: JamesIves/github-pages-deploy-action@v4.6.0
71
69
  if: ${{ inputs.publish }}
72
70
  with:
73
71
  branch: gh-pages
@@ -1,6 +1,3 @@
1
- # SPDX-License-Identifier: BSD-3-Clause
2
- # Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3
-
4
1
  name: Nightly test at main branch
5
2
 
6
3
  on:
@@ -1,6 +1,3 @@
1
- # SPDX-License-Identifier: BSD-3-Clause
2
- # Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3
-
4
1
  name: Nightly tests at latest release
5
2
 
6
3
  on:
@@ -1,6 +1,3 @@
1
- # SPDX-License-Identifier: BSD-3-Clause
2
- # Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3
-
4
1
  name: Release
5
2
 
6
3
  on:
@@ -18,7 +15,7 @@ jobs:
18
15
  runs-on: 'ubuntu-22.04'
19
16
 
20
17
  steps:
21
- - uses: actions/checkout@v3
18
+ - uses: actions/checkout@v4
22
19
  with:
23
20
  submodules: true
24
21
  fetch-depth: 0 # history required so setuptools_scm can determine version
@@ -31,7 +28,7 @@ jobs:
31
28
  boa
32
29
  - run: conda mambabuild --channel conda-forge --channel scipp --no-anaconda-upload --override-channels --output-folder conda/package conda
33
30
 
34
- - uses: actions/upload-artifact@v3
31
+ - uses: actions/upload-artifact@v4
35
32
  with:
36
33
  name: conda-package-noarch
37
34
  path: conda/package/noarch/*.tar.bz2
@@ -41,11 +38,11 @@ jobs:
41
38
  runs-on: 'ubuntu-22.04'
42
39
 
43
40
  steps:
44
- - uses: actions/checkout@v3
41
+ - uses: actions/checkout@v4
45
42
  with:
46
43
  fetch-depth: 0 # history required so setuptools_scm can determine version
47
44
 
48
- - uses: actions/setup-python@v4
45
+ - uses: actions/setup-python@v5
49
46
  with:
50
47
  python-version-file: '.github/workflows/python-version-ci'
51
48
 
@@ -56,7 +53,7 @@ jobs:
56
53
  run: python -m build
57
54
 
58
55
  - name: Upload wheels
59
- uses: actions/upload-artifact@v3
56
+ uses: actions/upload-artifact@v4
60
57
  with:
61
58
  name: dist
62
59
  path: dist
@@ -70,8 +67,8 @@ jobs:
70
67
  id-token: write
71
68
  if: github.event_name == 'release' && github.event.action == 'published'
72
69
  steps:
73
- - uses: actions/download-artifact@v3
74
- - uses: pypa/gh-action-pypi-publish@v1.8.10
70
+ - uses: actions/download-artifact@v4
71
+ - uses: pypa/gh-action-pypi-publish@v1.8.14
75
72
 
76
73
  upload_conda:
77
74
  name: Deploy Conda
@@ -80,7 +77,7 @@ jobs:
80
77
  if: github.event_name == 'release' && github.event.action == 'published'
81
78
 
82
79
  steps:
83
- - uses: actions/download-artifact@v3
80
+ - uses: actions/download-artifact@v4
84
81
  - uses: mamba-org/setup-micromamba@v1
85
82
  with:
86
83
  environment-name: upload-env
@@ -104,7 +101,7 @@ jobs:
104
101
  permissions:
105
102
  contents: write # This is needed so that the action can upload the asset
106
103
  steps:
107
- - uses: actions/download-artifact@v3
104
+ - uses: actions/download-artifact@v4
108
105
  - name: Zip documentation
109
106
  run: |
110
107
  mv docs_html documentation-${{ github.ref_name }}
@@ -1,6 +1,3 @@
1
- # SPDX-License-Identifier: BSD-3-Clause
2
- # Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3
-
4
1
  name: Test
5
2
 
6
3
  on:
@@ -48,16 +45,16 @@ jobs:
48
45
  runs-on: ${{ inputs.os-variant }}
49
46
 
50
47
  steps:
51
- - uses: actions/checkout@v3
48
+ - uses: actions/checkout@v4
52
49
  with:
53
50
  ref: ${{ inputs.checkout_ref }}
54
- - uses: actions/setup-python@v3
51
+ - uses: actions/setup-python@v5
55
52
  with:
56
53
  python-version: ${{ inputs.python-version }}
57
54
  - run: python -m pip install --upgrade pip
58
55
  - run: python -m pip install -r ${{ inputs.pip-recipe }}
59
56
  - run: tox -e ${{ inputs.tox-env }}
60
- - uses: actions/upload-artifact@v3
57
+ - uses: actions/upload-artifact@v4
61
58
  if: ${{ inputs.coverage-report }}
62
59
  with:
63
60
  name: CoverageReport
@@ -1,6 +1,3 @@
1
- # SPDX-License-Identifier: BSD-3-Clause
2
- # Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3
-
4
1
  name: Unpinned tests at latest release
5
2
 
6
3
  on:
@@ -37,3 +37,4 @@ docs/generated/
37
37
  *.raw
38
38
  *.cif
39
39
  *.rcif
40
+ *.ort
@@ -13,15 +13,6 @@ repos:
13
13
  - id: trailing-whitespace
14
14
  args: [ --markdown-linebreak-ext=md ]
15
15
  exclude: '\.svg'
16
- - repo: https://github.com/pycqa/isort
17
- rev: 5.12.0
18
- hooks:
19
- - id: isort
20
- name: isort (python)
21
- - repo: https://github.com/psf/black-pre-commit-mirror
22
- rev: 23.11.0
23
- hooks:
24
- - id: black
25
16
  - repo: https://github.com/kynan/nbstripout
26
17
  rev: 0.6.0
27
18
  hooks:
@@ -29,18 +20,14 @@ repos:
29
20
  types: [ "jupyter" ]
30
21
  args: [ "--drop-empty-cells",
31
22
  "--extra-keys 'metadata.language_info.version cell.metadata.jp-MarkdownHeadingCollapsed cell.metadata.pycharm'" ]
32
- - repo: https://github.com/pycqa/flake8
33
- rev: 6.1.0
34
- hooks:
35
- - id: flake8
36
- types: ["python"]
37
- additional_dependencies: ["flake8-bugbear==23.9.16"]
38
- - repo: https://github.com/pycqa/bandit
39
- rev: 1.7.5
40
- hooks:
41
- - id: bandit
42
- additional_dependencies: ["bandit[toml]"]
43
- args: ["-c", "pyproject.toml"]
23
+ - repo: https://github.com/astral-sh/ruff-pre-commit
24
+ rev: v0.4.1
25
+ hooks:
26
+ - id: ruff
27
+ args: [ --fix ]
28
+ types_or: [ python, pyi, jupyter ]
29
+ - id: ruff-format
30
+ types_or: [ python, pyi ]
44
31
  - repo: https://github.com/codespell-project/codespell
45
32
  rev: v2.2.6
46
33
  hooks:
@@ -1,6 +1,6 @@
1
1
  BSD 3-Clause License
2
2
 
3
- Copyright (c) 2023, Scipp contributors (https://github.com/scipp)
3
+ Copyright (c) 2024, Scipp contributors (https://github.com/scipp)
4
4
  All rights reserved.
5
5
 
6
6
  Redistribution and use in source and binary forms, with or without
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: essdiffraction
3
- Version: 23.12.0
3
+ Version: 24.6.0
4
4
  Summary: Diffraction data reduction for the European Spallation Source
5
5
  Author: Scipp contributors
6
6
  License: BSD 3-Clause License
7
7
 
8
- Copyright (c) 2023, Scipp contributors (https://github.com/scipp)
8
+ Copyright (c) 2024, Scipp contributors (https://github.com/scipp)
9
9
  All rights reserved.
10
10
 
11
11
  Redistribution and use in source and binary forms, with or without
@@ -42,19 +42,21 @@ Classifier: Natural Language :: English
42
42
  Classifier: Operating System :: OS Independent
43
43
  Classifier: Programming Language :: Python :: 3
44
44
  Classifier: Programming Language :: Python :: 3 :: Only
45
- Classifier: Programming Language :: Python :: 3.9
46
45
  Classifier: Programming Language :: Python :: 3.10
47
46
  Classifier: Programming Language :: Python :: 3.11
47
+ Classifier: Programming Language :: Python :: 3.12
48
48
  Classifier: Topic :: Scientific/Engineering
49
49
  Classifier: Typing :: Typed
50
- Requires-Python: >=3.9
50
+ 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
55
  Requires-Dist: graphviz
56
+ Requires-Dist: numpy<2.0.0
55
57
  Requires-Dist: plopp
56
58
  Requires-Dist: pythreejs
57
- Requires-Dist: sciline>=23.9.1
59
+ Requires-Dist: sciline>=24.06.0
58
60
  Requires-Dist: scipp>=23.8.0
59
61
  Requires-Dist: scippneutron>=23.9.0
60
62
  Requires-Dist: scippnexus>=23.12.0
@@ -6,21 +6,22 @@ package:
6
6
  source:
7
7
  path: ..
8
8
 
9
+
10
+ {% set pyproject = load_file_data('pyproject.toml') %}
11
+ {% set dependencies = pyproject.get('project', {}).get('dependencies', {}) %}
12
+
13
+
9
14
  requirements:
10
15
  build:
11
16
  - setuptools
12
17
  - setuptools_scm
13
18
  run:
14
- - dask
15
- - python>=3.8
16
- - python-graphviz
17
- - plopp
18
- - pythreejs
19
- - sciline>=23.9.1
20
- - scipp>=23.8.0
21
- - scippneutron>=23.11.0
22
- - scippnexus>=23.12.0
23
- - python>=3.9
19
+ - python>=3.10
20
+
21
+ {% for package in dependencies %}
22
+ - {% if package == "graphviz" %}python-graphviz{% else %}{{ package }}{% endif %}
23
+ {% endfor %}
24
+
24
25
 
25
26
  test:
26
27
  imports:
@@ -1,2 +1,2 @@
1
1
  <!-- This will display the version of the docs -->
2
- Current {{ project }} version: {{ version }} (<a href="https://github.com/scipp/{{ project|lower }}/releases">older versions</a>).
2
+ Current {{ project }} version: {{ version }} (<a href="https://github.com/{{orgname}}/{{ project|lower }}/releases">older versions</a>).
@@ -12,7 +12,7 @@ ESSdiffraction is available as open source under the [BSD-3 license](https://ope
12
12
 
13
13
  Please cite the following:
14
14
 
15
- [![DOI](https://zenodo.org/badge/FIXME.svg)](https://zenodo.org/doi/10.5281/zenodo.FIXME)
15
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10369509.svg)](https://zenodo.org/doi/10.5281/zenodo.10369509)
16
16
 
17
17
  To cite a specific version of ESSdiffraction, select the desired version on Zenodo to get the corresponding DOI.
18
18
 
@@ -0,0 +1,58 @@
1
+ # API Reference
2
+
3
+ ## ESSpowder
4
+
5
+ ### Module Attributes
6
+ ```{eval-rst}
7
+ .. currentmodule:: ess.powder
8
+
9
+ .. autosummary::
10
+ :toctree: ../generated/attributes
11
+
12
+ providers
13
+ with_pixel_mask_filenames
14
+ ```
15
+
16
+ ### Submodules
17
+
18
+ ```{eval-rst}
19
+ .. autosummary::
20
+ :toctree: ../generated/modules
21
+ :template: module-template.rst
22
+ :recursive:
23
+
24
+ conversion
25
+ correction
26
+ filtering
27
+ grouping
28
+ smoothing
29
+ types
30
+ uncertainty
31
+
32
+ external.powgen
33
+ ```
34
+
35
+ ## ESSdream
36
+
37
+ ### Top-level functions
38
+
39
+ ```{eval-rst}
40
+ .. currentmodule:: ess.dream
41
+
42
+ .. autosummary::
43
+ :toctree: ../generated/functions
44
+
45
+ instrument_view
46
+ ```
47
+
48
+ ### Submodules
49
+
50
+ ```{eval-rst}
51
+ .. autosummary::
52
+ :toctree: ../generated/modules
53
+ :template: module-template.rst
54
+ :recursive:
55
+
56
+ data
57
+ io
58
+ ```