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.
- essdiffraction-24.6.0/.copier-answers.ess.yml +3 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.copier-answers.yml +4 -4
- essdiffraction-24.6.0/.github/ISSUE_TEMPLATE/blank.md +8 -0
- essdiffraction-24.6.0/.github/ISSUE_TEMPLATE/high-level-requirement.yml +89 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/ci.yml +7 -9
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/docs.yml +5 -7
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/nightly_at_main.yml +0 -3
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/nightly_at_release.yml +0 -3
- essdiffraction-24.6.0/.github/workflows/python-version-ci +1 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/release.yml +9 -12
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/test.yml +3 -6
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/workflows/unpinned.yml +0 -3
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.gitignore +1 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.pre-commit-config.yaml +8 -21
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/LICENSE +1 -1
- {essdiffraction-23.12.0/src/essdiffraction.egg-info → essdiffraction-24.6.0}/PKG-INFO +7 -5
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/conda/meta.yaml +11 -10
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_templates/doc_version.html +1 -1
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/about/index.md +1 -1
- essdiffraction-24.6.0/docs/api-reference/index.md +58 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/conf.py +60 -41
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/developer/coding-conventions.md +1 -1
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/developer/getting-started.md +1 -1
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/developer/index.md +1 -1
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/index.md +1 -1
- essdiffraction-24.6.0/docs/user-guide/dream/dream-data-reduction.ipynb +294 -0
- essdiffraction-24.6.0/docs/user-guide/dream/dream-instrument-view.ipynb +255 -0
- essdiffraction-24.6.0/docs/user-guide/dream/index.md +10 -0
- essdiffraction-24.6.0/docs/user-guide/index.md +10 -0
- {essdiffraction-23.12.0/docs/examples → essdiffraction-24.6.0/docs/user-guide/sns-instruments}/POWGEN_data_reduction.ipynb +75 -104
- essdiffraction-24.6.0/docs/user-guide/sns-instruments/index.md +12 -0
- {essdiffraction-23.12.0/docs/examples → essdiffraction-24.6.0/docs/user-guide/sns-instruments}/preprocess_files.ipynb +30 -24
- essdiffraction-24.6.0/pyproject.toml +117 -0
- essdiffraction-24.6.0/requirements/base.in +14 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/base.txt +57 -54
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/basetest.in +2 -0
- essdiffraction-24.6.0/requirements/basetest.txt +33 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/ci.txt +13 -13
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/dev.txt +43 -35
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/docs.in +4 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/docs.txt +50 -47
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/make_base.py +1 -4
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/mypy.txt +1 -3
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/nightly.in +3 -1
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/nightly.txt +51 -63
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/static.txt +7 -10
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/wheels.txt +4 -10
- essdiffraction-24.6.0/setup.cfg +4 -0
- essdiffraction-24.6.0/src/ess/diffraction/__init__.py +16 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/ess/dream/__init__.py +10 -4
- essdiffraction-24.6.0/src/ess/dream/data.py +121 -0
- essdiffraction-24.6.0/src/ess/dream/instrument_view.py +154 -0
- essdiffraction-24.6.0/src/ess/dream/io/__init__.py +9 -0
- essdiffraction-24.6.0/src/ess/dream/io/geant4.py +208 -0
- essdiffraction-24.6.0/src/ess/dream/io/nexus.py +144 -0
- essdiffraction-24.6.0/src/ess/powder/__init__.py +47 -0
- essdiffraction-24.6.0/src/ess/powder/_util.py +22 -0
- essdiffraction-24.6.0/src/ess/powder/conversion.py +204 -0
- essdiffraction-24.6.0/src/ess/powder/correction.py +265 -0
- {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/external/__init__.py +1 -0
- {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/external/powgen/beamline.py +25 -9
- essdiffraction-24.6.0/src/ess/powder/external/powgen/data.py +148 -0
- {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/filtering.py +17 -43
- essdiffraction-24.6.0/src/ess/powder/grouping.py +35 -0
- {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/logging.py +3 -2
- essdiffraction-24.6.0/src/ess/powder/masking.py +97 -0
- {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/smoothing.py +1 -1
- essdiffraction-24.6.0/src/ess/powder/types.py +206 -0
- essdiffraction-24.6.0/src/ess/powder/uncertainty.py +52 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0/src/essdiffraction.egg-info}/PKG-INFO +7 -5
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/essdiffraction.egg-info/SOURCES.txt +42 -31
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/essdiffraction.egg-info/requires.txt +3 -1
- essdiffraction-24.6.0/tests/dream/geant4_reduction_test.py +147 -0
- essdiffraction-24.6.0/tests/dream/instrument_view_test.py +70 -0
- essdiffraction-24.6.0/tests/dream/io/geant4_test.py +192 -0
- essdiffraction-24.6.0/tests/dream/io/nexus_test.py +86 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/tests/package_test.py +1 -1
- essdiffraction-23.12.0/tests/diffraction/powder/conversions_test.py → essdiffraction-24.6.0/tests/powder/conversion_test.py +36 -2
- essdiffraction-24.6.0/tests/powder/correction_test.py +317 -0
- essdiffraction-24.6.0/tests/powder/external/powgen/powgen_reduction_test.py +136 -0
- {essdiffraction-23.12.0/tests/diffraction → essdiffraction-24.6.0/tests/powder}/filtering_test.py +1 -2
- {essdiffraction-23.12.0/tests/diffraction → essdiffraction-24.6.0/tests/powder}/load_test.py +4 -5
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/tox.ini +4 -4
- essdiffraction-23.12.0/.github/workflows/python-version-ci +0 -1
- essdiffraction-23.12.0/docs/api-reference/index.md +0 -44
- essdiffraction-23.12.0/docs/examples/index.md +0 -9
- essdiffraction-23.12.0/pyproject.toml +0 -87
- essdiffraction-23.12.0/requirements/base.in +0 -15
- essdiffraction-23.12.0/requirements/basetest.txt +0 -19
- essdiffraction-23.12.0/setup.cfg +0 -8
- essdiffraction-23.12.0/src/ess/diffraction/__init__.py +0 -56
- essdiffraction-23.12.0/src/ess/diffraction/correction.py +0 -125
- essdiffraction-23.12.0/src/ess/diffraction/external/powgen/data.py +0 -159
- essdiffraction-23.12.0/src/ess/diffraction/grouping.py +0 -81
- essdiffraction-23.12.0/src/ess/diffraction/powder/__init__.py +0 -14
- essdiffraction-23.12.0/src/ess/diffraction/powder/conversion.py +0 -157
- essdiffraction-23.12.0/src/ess/diffraction/powder/correction.py +0 -46
- essdiffraction-23.12.0/src/ess/diffraction/types.py +0 -117
- essdiffraction-23.12.0/src/ess/diffraction/uncertainty.py +0 -18
- essdiffraction-23.12.0/src/ess/dream/data.py +0 -34
- essdiffraction-23.12.0/src/ess/dream/io.py +0 -133
- essdiffraction-23.12.0/tests/diffraction/__init__.py +0 -2
- essdiffraction-23.12.0/tests/diffraction/external/powgen/powgen_reduction_test.py +0 -85
- essdiffraction-23.12.0/tests/diffraction/powder/__init__.py +0 -2
- essdiffraction-23.12.0/tests/diffraction/powder/corrections_test.py +0 -111
- essdiffraction-23.12.0/tests/dream/io_test.py +0 -77
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/.github/dependabot.yml +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/CODE_OF_CONDUCT.md +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/CONTRIBUTING.md +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/MANIFEST.in +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/README.md +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_static/anaconda-icon.js +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_static/favicon.svg +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_static/logo-dark.svg +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_static/logo.svg +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_templates/class-template.rst +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/_templates/module-template.rst +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/docs/developer/dependency-management.md +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/ci.in +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/dev.in +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/mypy.in +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/static.in +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/test.in +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/test.txt +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/requirements/wheels.in +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/resources/logo.svg +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/ess/diffraction/py.typed +0 -0
- /essdiffraction-23.12.0/tests/diffraction/external/__init__.py → /essdiffraction-24.6.0/src/ess/dream/py.typed +0 -0
- {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/external/powgen/__init__.py +0 -0
- {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/external/powgen/instrument_view.py +0 -0
- {essdiffraction-23.12.0/src/ess/diffraction → essdiffraction-24.6.0/src/ess/powder}/external/powgen/types.py +0 -0
- /essdiffraction-23.12.0/tests/diffraction/external/powgen/__init__.py → /essdiffraction-24.6.0/src/ess/powder/py.typed +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/essdiffraction.egg-info/dependency_links.txt +0 -0
- {essdiffraction-23.12.0 → essdiffraction-24.6.0}/src/essdiffraction.egg-info/top_level.txt +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
|
|
2
|
-
_commit:
|
|
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.
|
|
6
|
-
min_python: '3.
|
|
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:
|
|
13
|
+
year: 2024
|
|
@@ -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@
|
|
24
|
+
- uses: actions/setup-python@v5
|
|
28
25
|
with:
|
|
29
26
|
python-version-file: '.github/workflows/python-version-ci'
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- uses:
|
|
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
|
-
|
|
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@
|
|
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@
|
|
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@
|
|
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.
|
|
68
|
+
- uses: JamesIves/github-pages-deploy-action@v4.6.0
|
|
71
69
|
if: ${{ inputs.publish }}
|
|
72
70
|
with:
|
|
73
71
|
branch: gh-pages
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.10
|
|
@@ -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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
74
|
-
- uses: pypa/gh-action-pypi-publish@v1.8.
|
|
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@
|
|
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@
|
|
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@
|
|
48
|
+
- uses: actions/checkout@v4
|
|
52
49
|
with:
|
|
53
50
|
ref: ${{ inputs.checkout_ref }}
|
|
54
|
-
- uses: actions/setup-python@
|
|
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@
|
|
57
|
+
- uses: actions/upload-artifact@v4
|
|
61
58
|
if: ${{ inputs.coverage-report }}
|
|
62
59
|
with:
|
|
63
60
|
name: CoverageReport
|
|
@@ -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/
|
|
33
|
-
rev:
|
|
34
|
-
hooks:
|
|
35
|
-
- id:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: essdiffraction
|
|
3
|
-
Version:
|
|
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)
|
|
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.
|
|
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>=
|
|
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
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
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/
|
|
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
|
-
[](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
|
+
```
|