libertem-holo 0.1.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.
- libertem_holo-0.1.0/.codeclimate.yml +44 -0
- libertem_holo-0.1.0/.github/PULL_REQUEST_TEMPLATE +24 -0
- libertem_holo-0.1.0/.github/dependabot.yml +9 -0
- libertem_holo-0.1.0/.github/workflows/ci.yml +121 -0
- libertem_holo-0.1.0/.gitignore +31 -0
- libertem_holo-0.1.0/.pre-commit-config.yaml +22 -0
- libertem_holo-0.1.0/LICENSE +674 -0
- libertem_holo-0.1.0/PKG-INFO +125 -0
- libertem_holo-0.1.0/README.rst +83 -0
- libertem_holo-0.1.0/azure-pipelines-data.yml +189 -0
- libertem_holo-0.1.0/benchmarks/test_bench_filters.py +90 -0
- libertem_holo-0.1.0/benchmarks/test_bench_utils.py +32 -0
- libertem_holo-0.1.0/benchmarks/test_holo_stack.py +132 -0
- libertem_holo-0.1.0/codecov.yml +5 -0
- libertem_holo-0.1.0/conftest.py +110 -0
- libertem_holo-0.1.0/corporatedesign/logo/favicon.ico +0 -0
- libertem_holo-0.1.0/docs/Makefile +23 -0
- libertem_holo-0.1.0/docs/make.bat +36 -0
- libertem_holo-0.1.0/docs/source/_static/.keep +0 -0
- libertem_holo-0.1.0/docs/source/_static/css/custom.css +11 -0
- libertem_holo-0.1.0/docs/source/_static/logo.png +0 -0
- libertem_holo-0.1.0/docs/source/acknowledgments.rst +20 -0
- libertem_holo-0.1.0/docs/source/autogenerated/.gitignore +1 -0
- libertem_holo-0.1.0/docs/source/changelog/bugfix/.gitignore +0 -0
- libertem_holo-0.1.0/docs/source/changelog/documentation/.gitignore +0 -0
- libertem_holo-0.1.0/docs/source/changelog/features/.gitignore +0 -0
- libertem_holo-0.1.0/docs/source/changelog/features/create_package.rst +4 -0
- libertem_holo-0.1.0/docs/source/changelog/misc/.gitignore +0 -0
- libertem_holo-0.1.0/docs/source/changelog/obsolescence/.gitignore +0 -0
- libertem_holo-0.1.0/docs/source/changelog.rst +14 -0
- libertem_holo-0.1.0/docs/source/conf.py +229 -0
- libertem_holo-0.1.0/docs/source/images/FFT_reference.png +0 -0
- libertem_holo-0.1.0/docs/source/images/amp_comparison.png +0 -0
- libertem_holo-0.1.0/docs/source/images/amplitude_phase.png +0 -0
- libertem_holo-0.1.0/docs/source/images/holograms.png +0 -0
- libertem_holo-0.1.0/docs/source/images/phase_comparison.png +0 -0
- libertem_holo-0.1.0/docs/source/index.rst +39 -0
- libertem_holo-0.1.0/docs/source/reference/index.rst +41 -0
- libertem_holo-0.1.0/docs/source/references-libertem_holo.bib +13 -0
- libertem_holo-0.1.0/docs/source/usage.rst +229 -0
- libertem_holo-0.1.0/docs_requirements.txt +12 -0
- libertem_holo-0.1.0/hatch_build.py +37 -0
- libertem_holo-0.1.0/notebooks/stack-reconstruction.ipynb +863 -0
- libertem_holo-0.1.0/packaging/contributors.json +8 -0
- libertem_holo-0.1.0/packaging/creators.json +26 -0
- libertem_holo-0.1.0/packaging/zenodo-upload.json +24 -0
- libertem_holo-0.1.0/pyproject.toml +98 -0
- libertem_holo-0.1.0/pytest.ini +13 -0
- libertem_holo-0.1.0/scripts/build-authors-contributors +51 -0
- libertem_holo-0.1.0/scripts/creatorlist.ipynb +107 -0
- libertem_holo-0.1.0/scripts/release +707 -0
- libertem_holo-0.1.0/scripts/requirements.txt +11 -0
- libertem_holo-0.1.0/scripts/zenodo_upload +423 -0
- libertem_holo-0.1.0/setup.cfg +32 -0
- libertem_holo-0.1.0/src/libertem_holo/__init__.py +14 -0
- libertem_holo-0.1.0/src/libertem_holo/__version__.py +1 -0
- libertem_holo-0.1.0/src/libertem_holo/base/__init__.py +0 -0
- libertem_holo-0.1.0/src/libertem_holo/base/align.py +719 -0
- libertem_holo-0.1.0/src/libertem_holo/base/filters.py +443 -0
- libertem_holo-0.1.0/src/libertem_holo/base/generate.py +86 -0
- libertem_holo-0.1.0/src/libertem_holo/base/mask.py +2 -0
- libertem_holo-0.1.0/src/libertem_holo/base/reconstr.py +489 -0
- libertem_holo-0.1.0/src/libertem_holo/base/utils.py +529 -0
- libertem_holo-0.1.0/src/libertem_holo/udf/__init__.py +3 -0
- libertem_holo-0.1.0/src/libertem_holo/udf/reconstr.py +123 -0
- libertem_holo-0.1.0/src/libertem_holo/versioning.py +12 -0
- libertem_holo-0.1.0/test_requirements.txt +6 -0
- libertem_holo-0.1.0/tests/base/test_base.py +157 -0
- libertem_holo-0.1.0/tests/base/test_base_align.py +132 -0
- libertem_holo-0.1.0/tests/base/test_base_utils.py +95 -0
- libertem_holo-0.1.0/tests/test_smoke.py +81 -0
- libertem_holo-0.1.0/tests/test_udf.py +48 -0
- libertem_holo-0.1.0/tox.ini +88 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
version: "2"
|
|
2
|
+
checks:
|
|
3
|
+
file-lines:
|
|
4
|
+
config:
|
|
5
|
+
threshold: 400
|
|
6
|
+
return-statements:
|
|
7
|
+
config:
|
|
8
|
+
threshold: 15
|
|
9
|
+
argument-count:
|
|
10
|
+
config:
|
|
11
|
+
threshold: 8
|
|
12
|
+
plugins:
|
|
13
|
+
tslint:
|
|
14
|
+
enabled: true
|
|
15
|
+
config: client/tslint.json
|
|
16
|
+
sonar-python:
|
|
17
|
+
enabled: true
|
|
18
|
+
config:
|
|
19
|
+
tests_patterns:
|
|
20
|
+
- tests/**
|
|
21
|
+
minimum_severity: major
|
|
22
|
+
radon:
|
|
23
|
+
enabled: true
|
|
24
|
+
config:
|
|
25
|
+
threshold: "B"
|
|
26
|
+
bandit:
|
|
27
|
+
enabled: true
|
|
28
|
+
exclude_patterns:
|
|
29
|
+
- "config/"
|
|
30
|
+
- "db/"
|
|
31
|
+
- "dist/"
|
|
32
|
+
- "features/"
|
|
33
|
+
- "**/node_modules/"
|
|
34
|
+
- "script/"
|
|
35
|
+
- "**/spec/"
|
|
36
|
+
- "**/test/"
|
|
37
|
+
- "**/tests/"
|
|
38
|
+
- "Tests/"
|
|
39
|
+
- "**/vendor/"
|
|
40
|
+
- "**/*_test.go"
|
|
41
|
+
- "**/*.d.ts"
|
|
42
|
+
- "benchmarks/"
|
|
43
|
+
- "prototypes/"
|
|
44
|
+
- "conftest.py"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
## Contributor Checklist:
|
|
2
|
+
|
|
3
|
+
* [ ] I have added myself to [the creators.json file](https://github.com/LiberTEM/LiberTEM/blob/master/packaging/creators.json)
|
|
4
|
+
* [ ] I have added [a changelog entry](https://github.com/LiberTEM/LiberTEM/tree/master/docs/source/changelog) for my contribution
|
|
5
|
+
* [ ] I have added/updated documentation for all user-facing changes
|
|
6
|
+
* [ ] I have added/updated test cases
|
|
7
|
+
|
|
8
|
+
<!--
|
|
9
|
+
|
|
10
|
+
## Please remove this section
|
|
11
|
+
|
|
12
|
+
Starting by submitting an incomplete pull request (PR) or draft PR is OK. You
|
|
13
|
+
can work on the checklist step by step by pushing additional commits into the
|
|
14
|
+
PR. Please indicate if you think some items may not be applicable.
|
|
15
|
+
|
|
16
|
+
You can have a look at [our contributing
|
|
17
|
+
docs](https://libertem.github.io/LiberTEM/contributing.html) for more
|
|
18
|
+
information on contributing to LiberTEM. Please feel free to ask for
|
|
19
|
+
clarification and help, for example in your PR description, with comments or in
|
|
20
|
+
our [Gitter channel](https://gitter.im/LiberTEM/Lobby).
|
|
21
|
+
|
|
22
|
+
Thank you for your contribution!
|
|
23
|
+
|
|
24
|
+
-->
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Please see the documentation for all configuration options:
|
|
2
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
3
|
+
|
|
4
|
+
version: 2
|
|
5
|
+
updates:
|
|
6
|
+
- package-ecosystem: "github-actions"
|
|
7
|
+
directory: "/" # Location of package manifests
|
|
8
|
+
schedule:
|
|
9
|
+
interval: "weekly"
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
- 'v[0-9]*'
|
|
8
|
+
tags:
|
|
9
|
+
- 'v[0-9]*'
|
|
10
|
+
pull_request:
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
tests:
|
|
18
|
+
strategy:
|
|
19
|
+
matrix:
|
|
20
|
+
python_version: ["3.9", "3.10", "3.11", "3.12"]
|
|
21
|
+
os: [ubuntu-latest, windows-latest, macos-14]
|
|
22
|
+
exclude:
|
|
23
|
+
- os: macos-14
|
|
24
|
+
python_version: "3.9"
|
|
25
|
+
runs-on: ${{ matrix.os }}
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
- name: Choose Python version ${{ matrix.python_version }}
|
|
29
|
+
uses: actions/setup-python@v5
|
|
30
|
+
with:
|
|
31
|
+
python-version: '${{ matrix.python_version }}'
|
|
32
|
+
cache: 'pip'
|
|
33
|
+
- name: install tox (with uv)
|
|
34
|
+
run: python3 -m pip install tox tox-uv
|
|
35
|
+
- name: run tox
|
|
36
|
+
run: tox -e 'py${{ matrix.python_version }}'
|
|
37
|
+
- name: submit code coverage
|
|
38
|
+
uses: codecov/codecov-action@v5
|
|
39
|
+
env:
|
|
40
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
41
|
+
|
|
42
|
+
additional:
|
|
43
|
+
strategy:
|
|
44
|
+
matrix:
|
|
45
|
+
envs: ["numba_coverage", "docs-check"]
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/checkout@v4
|
|
49
|
+
- name: 'Choose Python version 3.11'
|
|
50
|
+
uses: actions/setup-python@v5
|
|
51
|
+
with:
|
|
52
|
+
python-version: '3.11'
|
|
53
|
+
cache: 'pip'
|
|
54
|
+
- run: sudo apt-get install -y pandoc
|
|
55
|
+
- name: install tox
|
|
56
|
+
run: python3 -m pip install tox tox-uv
|
|
57
|
+
- name: 'run tox for environment ${{ matrix.envs }}'
|
|
58
|
+
run: tox -e '${{ matrix.envs }}'
|
|
59
|
+
- name: submit code coverage
|
|
60
|
+
uses: codecov/codecov-action@v5
|
|
61
|
+
env:
|
|
62
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
63
|
+
|
|
64
|
+
build-docs:
|
|
65
|
+
runs-on: ubuntu-latest
|
|
66
|
+
steps:
|
|
67
|
+
- uses: actions/checkout@v4
|
|
68
|
+
- name: 'Choose Python version 3.11'
|
|
69
|
+
uses: actions/setup-python@v5
|
|
70
|
+
with:
|
|
71
|
+
python-version: '3.11'
|
|
72
|
+
cache: 'pip'
|
|
73
|
+
- run: sudo apt-get install -y pandoc
|
|
74
|
+
- name: install tox
|
|
75
|
+
run: python3 -m pip install tox tox-uv
|
|
76
|
+
- name: 'run tox for docs-build-ci'
|
|
77
|
+
run: tox -e 'docs-build-ci'
|
|
78
|
+
- uses: actions/upload-pages-artifact@v3.0.1
|
|
79
|
+
with:
|
|
80
|
+
path: 'docs/build/html/'
|
|
81
|
+
|
|
82
|
+
deploy-docs:
|
|
83
|
+
runs-on: ubuntu-latest
|
|
84
|
+
needs: [build-docs, additional, tests]
|
|
85
|
+
if: github.ref == 'refs/heads/master'
|
|
86
|
+
permissions:
|
|
87
|
+
pages: write
|
|
88
|
+
id-token: write
|
|
89
|
+
environment:
|
|
90
|
+
name: github-pages
|
|
91
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
92
|
+
steps:
|
|
93
|
+
- name: Deploy to GitHub Pages
|
|
94
|
+
id: deployment
|
|
95
|
+
uses: actions/deploy-pages@v4
|
|
96
|
+
- run: |
|
|
97
|
+
curl -XPOST -u "sk1p:${{secrets.PAGES_TRIGGER_GH_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H 'Content-Type: application/json' https://api.github.com/repos/LiberTEM/libertem.github.io/dispatches --data '{"event_type":"build_pages","client_payload":{"from":"LiberTEM-holo"}}'
|
|
98
|
+
|
|
99
|
+
release:
|
|
100
|
+
runs-on: ubuntu-latest
|
|
101
|
+
needs: [build-docs, additional, tests]
|
|
102
|
+
# master branch, stable branches or release tags:
|
|
103
|
+
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/v') || github.ref == 'refs/heads/master'
|
|
104
|
+
env:
|
|
105
|
+
LT_RELEASE_UPLOAD_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
106
|
+
LT_RELEASE_UPLOAD_PYPI_PASSWORD: ${{ secrets.LT_RELEASE_UPLOAD_PYPI_PASSWORD }}
|
|
107
|
+
LT_RELEASE_UPLOAD_ZENODO_TOKEN: ${{ secrets.LT_RELEASE_UPLOAD_ZENODO_TOKEN }}
|
|
108
|
+
LT_RELEASE_UPLOAD_ZENODO_PARENT: ${{ secrets.LT_RELEASE_UPLOAD_ZENODO_PARENT }}
|
|
109
|
+
steps:
|
|
110
|
+
- uses: actions/checkout@v4
|
|
111
|
+
- name: Choose Python version 3.11
|
|
112
|
+
uses: actions/setup-python@v5
|
|
113
|
+
with:
|
|
114
|
+
python-version: "3.11"
|
|
115
|
+
cache: 'pip'
|
|
116
|
+
- name: install release script deps
|
|
117
|
+
run: pip install -r scripts/requirements.txt
|
|
118
|
+
- name: release status
|
|
119
|
+
run: ./scripts/release status
|
|
120
|
+
- name: run release script
|
|
121
|
+
run: ./scripts/release --verbose upload --no-dry-run --pypi-user __token__
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
*.swp
|
|
2
|
+
*.pyc
|
|
3
|
+
*.bib.bak
|
|
4
|
+
*.bib.sav
|
|
5
|
+
__pycache__
|
|
6
|
+
.tox
|
|
7
|
+
docs/build/
|
|
8
|
+
.ipynb_checkpoints/
|
|
9
|
+
*.egg-info
|
|
10
|
+
htmlcov
|
|
11
|
+
coverage.xml
|
|
12
|
+
.coverage*
|
|
13
|
+
.pytest_cache
|
|
14
|
+
node_modules
|
|
15
|
+
build
|
|
16
|
+
dist
|
|
17
|
+
*.AppImage
|
|
18
|
+
dask-worker-space
|
|
19
|
+
AppDir
|
|
20
|
+
Miniconda3-latest-Linux-x86_64.sh
|
|
21
|
+
MANIFEST
|
|
22
|
+
.vscode
|
|
23
|
+
pip-wheel-metadata
|
|
24
|
+
data
|
|
25
|
+
*Thumbs.db
|
|
26
|
+
*.DS_Store
|
|
27
|
+
*.idea
|
|
28
|
+
.mypy_cache/
|
|
29
|
+
.benchmarks
|
|
30
|
+
src/libertem_holo/_baked_revision.py
|
|
31
|
+
*.dm4
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# See https://pre-commit.com for more information
|
|
2
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v5.0.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
files: ^src/
|
|
9
|
+
- id: end-of-file-fixer
|
|
10
|
+
files: ^src/
|
|
11
|
+
- id: check-yaml
|
|
12
|
+
- id: check-added-large-files
|
|
13
|
+
exclude: ^notebooks/
|
|
14
|
+
- repo: https://github.com/pycqa/flake8
|
|
15
|
+
rev: 7.2.0
|
|
16
|
+
hooks:
|
|
17
|
+
- id: flake8
|
|
18
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
19
|
+
rev: v3.19.1
|
|
20
|
+
hooks:
|
|
21
|
+
- id: pyupgrade
|
|
22
|
+
args: ["--py39-plus"]
|