pysrim2 0.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 (70) hide show
  1. pysrim2-0.6.0/.git-blame-ignore-revs +2 -0
  2. pysrim2-0.6.0/.gitattributes +4 -0
  3. pysrim2-0.6.0/.github/workflows/ci.yml +76 -0
  4. pysrim2-0.6.0/.github/workflows/release.yml +146 -0
  5. pysrim2-0.6.0/.gitignore +71 -0
  6. pysrim2-0.6.0/.pre-commit-config.yaml +25 -0
  7. pysrim2-0.6.0/.python-version +1 -0
  8. pysrim2-0.6.0/.readthedocs.yaml +19 -0
  9. pysrim2-0.6.0/AGENTS.md +21 -0
  10. pysrim2-0.6.0/CHANGELOG.md +55 -0
  11. pysrim2-0.6.0/CLAUDE.md +1 -0
  12. pysrim2-0.6.0/CONDUCT.md +73 -0
  13. pysrim2-0.6.0/LICENSE +23 -0
  14. pysrim2-0.6.0/PKG-INFO +248 -0
  15. pysrim2-0.6.0/README.md +220 -0
  16. pysrim2-0.6.0/docs/Makefile +23 -0
  17. pysrim2-0.6.0/docs/benchmarks.rst +119 -0
  18. pysrim2-0.6.0/docs/changelog.md +2 -0
  19. pysrim2-0.6.0/docs/changes-from-pysrim.md +62 -0
  20. pysrim2-0.6.0/docs/conf.py +33 -0
  21. pysrim2-0.6.0/docs/index.rst +40 -0
  22. pysrim2-0.6.0/docs/installation.rst +46 -0
  23. pysrim2-0.6.0/docs/source/modules.rst +9 -0
  24. pysrim2-0.6.0/docs/source/srim.core.rst +78 -0
  25. pysrim2-0.6.0/docs/source/srim.rst +45 -0
  26. pysrim2-0.6.0/docs/superpowers/plans/2026-11-03-pysrim2-foundation.md +228 -0
  27. pysrim2-0.6.0/docs/superpowers/specs/2026-11-03-pysrim2-design.md +332 -0
  28. pysrim2-0.6.0/docs/tutorial.rst +195 -0
  29. pysrim2-0.6.0/examples/docker/README.md +18 -0
  30. pysrim2-0.6.0/examples/docker/ni.py +34 -0
  31. pysrim2-0.6.0/examples/input/README.md +2 -0
  32. pysrim2-0.6.0/examples/input/TRIM.IN +29 -0
  33. pysrim2-0.6.0/examples/input/TRIM.Ni.IN +29 -0
  34. pysrim2-0.6.0/examples/input/trim.striped.in +29 -0
  35. pysrim2-0.6.0/examples/notebooks/Analysis.ipynb +428 -0
  36. pysrim2-0.6.0/examples/notebooks/Collision.ipynb +625 -0
  37. pysrim2-0.6.0/examples/notebooks/KTaO3.ipynb +965 -0
  38. pysrim2-0.6.0/examples/notebooks/Multilayer.ipynb +170 -0
  39. pysrim2-0.6.0/examples/notebooks/Regular SRIM Calculation.ipynb +127 -0
  40. pysrim2-0.6.0/examples/notebooks/SiC.ipynb +930 -0
  41. pysrim2-0.6.0/pyproject.toml +90 -0
  42. pysrim2-0.6.0/srim/__init__.py +6 -0
  43. pysrim2-0.6.0/srim/config.py +3 -0
  44. pysrim2-0.6.0/srim/core/__init__.py +6 -0
  45. pysrim2-0.6.0/srim/core/element.py +81 -0
  46. pysrim2-0.6.0/srim/core/elementdb.py +73 -0
  47. pysrim2-0.6.0/srim/core/ion.py +53 -0
  48. pysrim2-0.6.0/srim/core/layer.py +98 -0
  49. pysrim2-0.6.0/srim/core/material.py +205 -0
  50. pysrim2-0.6.0/srim/core/target.py +35 -0
  51. pysrim2-0.6.0/srim/core/units.py +8 -0
  52. pysrim2-0.6.0/srim/core/utils.py +20 -0
  53. pysrim2-0.6.0/srim/data/elements.yaml +2674 -0
  54. pysrim2-0.6.0/srim/input.py +309 -0
  55. pysrim2-0.6.0/srim/output.py +912 -0
  56. pysrim2-0.6.0/srim/plot.py +53 -0
  57. pysrim2-0.6.0/srim/srim.py +355 -0
  58. pysrim2-0.6.0/tests/core/test_element.py +49 -0
  59. pysrim2-0.6.0/tests/core/test_elementdb.py +66 -0
  60. pysrim2-0.6.0/tests/core/test_elementdb_import.py +11 -0
  61. pysrim2-0.6.0/tests/core/test_ion.py +44 -0
  62. pysrim2-0.6.0/tests/core/test_layer.py +13 -0
  63. pysrim2-0.6.0/tests/core/test_material.py +145 -0
  64. pysrim2-0.6.0/tests/core/test_target.py +9 -0
  65. pysrim2-0.6.0/tests/test_integration.py +1 -0
  66. pysrim2-0.6.0/tests/test_output.py +233 -0
  67. pysrim2-0.6.0/tests/test_package.py +27 -0
  68. pysrim2-0.6.0/tests/test_plot.py +51 -0
  69. pysrim2-0.6.0/tests/test_srim.py +109 -0
  70. pysrim2-0.6.0/uv.lock +1986 -0
@@ -0,0 +1,2 @@
1
+ # style: format with ruff
2
+ 935df1e6e25015c9a72ca8d449b1e85e98fe3e76
@@ -0,0 +1,4 @@
1
+ # SRIM fixtures are CRLF and read byte-for-byte on every platform; never normalise them.
2
+ test_files/** -text
3
+ examples/input/** -text
4
+ *.IN -text
@@ -0,0 +1,76 @@
1
+ name: ci
2
+
3
+ on:
4
+ push:
5
+ branches: ["main"]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: ci-${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
15
+
16
+ jobs:
17
+ lint:
18
+ name: lint
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - name: Check out the repository
22
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
+ with:
24
+ persist-credentials: false
25
+
26
+ - name: Install uv
27
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
28
+
29
+ - name: Run pre-commit on all files
30
+ run: uv run --group dev pre-commit run --all-files --show-diff-on-failure
31
+
32
+ test:
33
+ name: test
34
+ strategy:
35
+ fail-fast: false
36
+ matrix:
37
+ python: ["3.11", "3.12", "3.13", "3.14", "3.15"]
38
+ os: [ubuntu-latest, windows-latest, macos-latest]
39
+ runs-on: ${{ matrix.os }}
40
+ steps:
41
+ - name: Check out the repository
42
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
43
+ with:
44
+ persist-credentials: false
45
+
46
+ - name: Install uv
47
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
48
+
49
+ - name: Run tests with coverage
50
+ shell: bash
51
+ env:
52
+ PYTHON_VERSION: ${{ matrix.python }}
53
+ run: |
54
+ uv run --python "$PYTHON_VERSION" pytest --cov=srim --cov-report=xml --cov-fail-under=70
55
+
56
+ build:
57
+ name: build
58
+ runs-on: ubuntu-latest
59
+ steps:
60
+ - name: Check out the repository
61
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
62
+ with:
63
+ persist-credentials: false
64
+
65
+ - name: Install uv
66
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
67
+
68
+ - name: Build sdist and wheel
69
+ run: uv build
70
+
71
+ - name: Upload distributions
72
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
73
+ with:
74
+ name: dist
75
+ path: dist/
76
+ if-no-files-found: error
@@ -0,0 +1,146 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+ workflow_dispatch:
7
+ inputs:
8
+ testpypi:
9
+ description: "Publish the build to TestPyPI"
10
+ type: boolean
11
+ default: true
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ build:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - name: Check out the repository
21
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22
+ with:
23
+ persist-credentials: false
24
+
25
+ - name: Install uv
26
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
27
+
28
+ - name: Verify tag matches project version
29
+ if: github.ref_type == 'tag'
30
+ env:
31
+ TAG: ${{ github.ref_name }}
32
+ run: |
33
+ version="$(uv version --short --frozen)"
34
+ if [ "$TAG" != "v${version}" ]; then
35
+ echo "Tag '$TAG' does not match project version 'v${version}'." >&2
36
+ exit 1
37
+ fi
38
+ echo "Tag '$TAG' matches project version '${version}'."
39
+
40
+ - name: Build sdist and wheel
41
+ run: uv build
42
+
43
+ - name: Upload distributions
44
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
45
+ with:
46
+ name: dist
47
+ path: dist/
48
+ if-no-files-found: error
49
+
50
+ publish-testpypi:
51
+ needs: build
52
+ if: github.event_name == 'workflow_dispatch' && inputs.testpypi
53
+ runs-on: ubuntu-latest
54
+ environment:
55
+ name: testpypi
56
+ url: https://test.pypi.org/p/pysrim2
57
+ permissions:
58
+ id-token: write
59
+ steps:
60
+ - name: Download distributions
61
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
62
+ with:
63
+ name: dist
64
+ path: dist/
65
+
66
+ - name: Publish to TestPyPI
67
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
68
+ with:
69
+ repository-url: https://test.pypi.org/legacy/
70
+
71
+ publish-pypi:
72
+ needs: build
73
+ if: github.event_name == 'push' && github.ref_type == 'tag'
74
+ runs-on: ubuntu-latest
75
+ environment:
76
+ name: pypi
77
+ url: https://pypi.org/p/pysrim2
78
+ permissions:
79
+ id-token: write
80
+ steps:
81
+ - name: Download distributions
82
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
83
+ with:
84
+ name: dist
85
+ path: dist/
86
+
87
+ - name: Publish to PyPI
88
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
89
+
90
+ github-release:
91
+ needs: publish-pypi
92
+ if: github.event_name == 'push' && github.ref_type == 'tag'
93
+ runs-on: ubuntu-latest
94
+ permissions:
95
+ contents: write
96
+ env:
97
+ GH_TOKEN: ${{ github.token }}
98
+ TAG: ${{ github.ref_name }}
99
+ REPO: ${{ github.repository }}
100
+ steps:
101
+ - name: Check out the repository
102
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
103
+ with:
104
+ persist-credentials: false
105
+
106
+ - name: Download distributions
107
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
108
+ with:
109
+ name: dist
110
+ path: dist/
111
+
112
+ - name: Create GitHub release
113
+ run: |
114
+ version="${TAG#v}"
115
+ header="## [${version}]"
116
+ notes="notes.md"
117
+
118
+ # Extract the CHANGELOG section for this version, if there is one.
119
+ # Matching is literal (index), anchored at the start of the line.
120
+ : > "$notes"
121
+ if [ -f CHANGELOG.md ]; then
122
+ awk -v header="$header" '
123
+ index($0, header) == 1 { found = 1; next }
124
+ found && /^## \[/ { exit }
125
+ found && /^\[[^]]+\]: / { exit }
126
+ found { print }
127
+ ' CHANGELOG.md > "$notes"
128
+ fi
129
+
130
+ # Fall back to GitHub-generated notes when there is no usable section.
131
+ notes_args=(--generate-notes)
132
+ if grep -q '[^[:space:]]' "$notes"; then
133
+ notes_args=(--notes-file "$notes")
134
+ fi
135
+
136
+ prerelease_flag=()
137
+ if echo "$version" | grep -qE '(a|b|rc|dev)[0-9]+'; then
138
+ prerelease_flag=(--prerelease)
139
+ fi
140
+
141
+ gh release create "$TAG" dist/* \
142
+ --repo "$REPO" \
143
+ --verify-tag \
144
+ --title "$TAG" \
145
+ "${notes_args[@]}" \
146
+ "${prerelease_flag[@]}"
@@ -0,0 +1,71 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ env/
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+
27
+ # PyInstaller
28
+ # Usually these files are written by a python script from a template
29
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
30
+ *.manifest
31
+ *.spec
32
+
33
+ # Installer logs
34
+ pip-log.txt
35
+ pip-delete-this-directory.txt
36
+
37
+ # Unit test / coverage reports
38
+ htmlcov/
39
+ .tox/
40
+ .coverage
41
+ .coverage.*
42
+ .cache
43
+ nosetests.xml
44
+ coverage.xml
45
+ *,cover
46
+ .hypothesis/
47
+
48
+ # Translations
49
+ *.mo
50
+ *.pot
51
+
52
+ # Django stuff:
53
+ *.log
54
+ local_settings.py
55
+
56
+ # Sphinx documentation
57
+ docs/_build/
58
+
59
+ # PyBuilder
60
+ target/
61
+
62
+ #Ipython Notebook
63
+ .ipynb_checkpoints
64
+
65
+ # pyenv
66
+ venv
67
+
68
+ # pytest
69
+ .pytest_cache.DS_Store
70
+ .venv/
71
+ .superpowers/
@@ -0,0 +1,25 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.17.3
4
+ hooks:
5
+ - id: ruff-check
6
+ args: [--fix]
7
+ - id: ruff-format
8
+
9
+ - repo: https://github.com/pre-commit/pre-commit-hooks
10
+ rev: v6.0.0
11
+ hooks:
12
+ - id: end-of-file-fixer
13
+ # SRIM fixtures are CRLF and byte-exact; never rewrite them.
14
+ exclude: ^test_files/|\.IN$|^examples/input/|\.ipynb$
15
+ - id: trailing-whitespace
16
+ exclude: ^test_files/|\.IN$|^examples/input/|\.ipynb$
17
+ - id: check-yaml
18
+ - id: check-toml
19
+ - id: check-added-large-files
20
+ args: [--maxkb=1024]
21
+
22
+ - repo: https://github.com/astral-sh/uv-pre-commit
23
+ rev: 0.13.7
24
+ hooks:
25
+ - id: uv-lock
@@ -0,0 +1 @@
1
+ 3.13
@@ -0,0 +1,19 @@
1
+ version: 2
2
+
3
+ build:
4
+ os: ubuntu-24.04
5
+ tools:
6
+ python: "3.13"
7
+ jobs:
8
+ pre_create_environment:
9
+ - asdf plugin add uv
10
+ - asdf install uv latest
11
+ - asdf global uv latest
12
+ create_environment:
13
+ - uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
14
+ install:
15
+ - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group docs
16
+
17
+ sphinx:
18
+ configuration: docs/conf.py
19
+ fail_on_warning: true
@@ -0,0 +1,21 @@
1
+ # AGENTS.md
2
+
3
+ pysrim2 is a maintained continuation of pysrim (distribution `pysrim2`, import `srim`).
4
+
5
+ ## Commands
6
+
7
+ - Setup: `uv sync`
8
+ - Test: `uv run pytest` (run from the repository root; tests use relative paths such as `test_files/`)
9
+ - Lint and format: `uv run pre-commit run --all-files`
10
+ - Docs: `uv run --group docs sphinx-build -W -b html docs <output dir>`
11
+ - Build: `uv build`
12
+ - Once per clone: `git config blame.ignoreRevsFile .git-blame-ignore-revs`
13
+
14
+ ## Conventions
15
+
16
+ - Conventional commit prefixes (feat, fix, test, build, docs, chore, style, ci); one concern per commit.
17
+ - Every user-visible change adds a line under `## [Unreleased]` in `CHANGELOG.md`.
18
+ - Never commit SRIM binaries or large outputs.
19
+ - Fixtures in `test_files/` are byte-exact SRIM output with CRLF line endings. Do not reformat them or let an editor change line endings.
20
+ - Fork commits: bring them in with `git cherry-pick -x` so author and message are kept. Never squash or amend them. Put our own changes (tests, adjustments, credit for others who fixed the same thing via `Co-authored-by:`) in separate follow-up commits. Record the result in `docs/changes-from-pysrim.md`.
21
+ - Python 3.11 or newer; runtime dependencies are numpy, pyyaml and pandas.
@@ -0,0 +1,55 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.6.0] - 2026-11-03
11
+
12
+ Changes since pysrim 0.5.10. See
13
+ [changes from pysrim](https://pysrim2.readthedocs.io/en/latest/changes-from-pysrim.html) for credits and details.
14
+
15
+ ### Added
16
+
17
+ - Run SRIM under `xvfb-run -a` when it is available, so no display is needed (Jan Mayer).
18
+ - Parse SRIM output written with comma decimal separators (philis-johan, MrRobot2211).
19
+ - Support the `m` (metre) length unit in SR output (Angus Hollands).
20
+ - `SRIMOutputParseError` for unknown units in SR output.
21
+ - GitHub Actions: lint, test matrix (Python 3.11 to 3.15 on Linux, Windows and macOS), build, and a trusted-publishing release workflow.
22
+ - Ruff configuration and pre-commit hooks.
23
+ - Documentation: change list relative to pysrim, changelog page, `AGENTS.md`.
24
+
25
+ ### Changed
26
+
27
+ - The distribution is renamed to `pysrim2`; the import name `srim` is unchanged. It cannot be installed alongside `pysrim`.
28
+ - Requires Python 3.11 or newer.
29
+ - Packaging uses `pyproject.toml`, hatchling and uv (Angus Hollands).
30
+ - Wine is detected with `shutil.which` through a shared launch helper (Mirochill).
31
+ - Code formatted with ruff.
32
+ - Documentation uses the furo theme, is built with uv, and is hosted at <https://pysrim2.readthedocs.io>.
33
+ - README and installation instructions rewritten for pysrim2.
34
+
35
+ ### Fixed
36
+
37
+ - Removed the `distutils` import so the package imports on Python 3.12 and later (lievcm).
38
+ - Regular expressions use raw strings, removing invalid escape sequence warnings (lievcm).
39
+ - Ion energies with a leading or trailing decimal point (such as `.3 keV`) are parsed (Mirochill, George Apostolopoulos, SimonF24).
40
+ - Positive `autosave` intervals are accepted (Mirochill).
41
+ - The sputtered output setting is honoured independently of ranges (Mirochill).
42
+ - The element database file is closed after loading.
43
+ - Undefined names: the `NotImpementedError` typo in `SRIM_Output._read_target`, and missing `numpy` import and `folder` argument in `srim.plot`.
44
+ - Plot functions read `Results` attributes instead of subscripting `Results`.
45
+ - Docstring markup errors that produced Sphinx warnings.
46
+
47
+ ### Removed
48
+
49
+ - Support for Python versions before 3.11.
50
+ - `setup.py`, `setup.cfg`, the conda recipe, `install.sh`, `default.nix`, GitLab CI and the old Dockerfiles. A container image and a SRIM installer for wine are planned.
51
+
52
+ Versions up to and including 0.5.10 were released as `pysrim` by Chris Ostrouchov.
53
+
54
+ [Unreleased]: https://github.com/FSIBT/pysrim2/compare/v0.6.0...HEAD
55
+ [0.6.0]: https://github.com/FSIBT/pysrim2/compare/0421575...v0.6.0
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1,73 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ education, socio-economic status, nationality, personal appearance, race,
10
+ religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
pysrim2-0.6.0/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ The MIT License
2
+ ===============
3
+
4
+ Copyright (c) 2018 Chris Ostrouchov
5
+ Copyright (c) 2026 pysrim2 contributors
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.