rm-lite 0.0.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 (54) hide show
  1. rm_lite-0.0.0/.github/CONTRIBUTING.md +89 -0
  2. rm_lite-0.0.0/.github/dependabot.yml +11 -0
  3. rm_lite-0.0.0/.github/release.yml +5 -0
  4. rm_lite-0.0.0/.github/workflows/cd.yml +60 -0
  5. rm_lite-0.0.0/.github/workflows/ci.yml +72 -0
  6. rm_lite-0.0.0/.gitignore +157 -0
  7. rm_lite-0.0.0/.pre-commit-config.yaml +87 -0
  8. rm_lite-0.0.0/.readthedocs.yaml +17 -0
  9. rm_lite-0.0.0/LICENSE +21 -0
  10. rm_lite-0.0.0/PKG-INFO +166 -0
  11. rm_lite-0.0.0/README.md +94 -0
  12. rm_lite-0.0.0/docs/conf.py +53 -0
  13. rm_lite-0.0.0/docs/index.md +17 -0
  14. rm_lite-0.0.0/external/ crpurcell_LICENSE.md +20 -0
  15. rm_lite-0.0.0/external/CIRADA_LICENSE.md +15 -0
  16. rm_lite-0.0.0/external/finufft_LICENSE.md +41 -0
  17. rm_lite-0.0.0/noxfile.py +96 -0
  18. rm_lite-0.0.0/pyproject.toml +156 -0
  19. rm_lite-0.0.0/rm_lite/__init__.py +0 -0
  20. rm_lite-0.0.0/rm_lite/_version.py +16 -0
  21. rm_lite-0.0.0/rm_lite/_version.pyi +4 -0
  22. rm_lite-0.0.0/rm_lite/tools_1d/__init__.py +5 -0
  23. rm_lite-0.0.0/rm_lite/tools_1d/bwdepol.py +1519 -0
  24. rm_lite-0.0.0/rm_lite/tools_1d/bwpredict.py +203 -0
  25. rm_lite-0.0.0/rm_lite/tools_1d/models_ns/__init__.py +3 -0
  26. rm_lite-0.0.0/rm_lite/tools_1d/models_ns/m1.py +60 -0
  27. rm_lite-0.0.0/rm_lite/tools_1d/models_ns/m11.py +126 -0
  28. rm_lite-0.0.0/rm_lite/tools_1d/models_ns/m111.py +156 -0
  29. rm_lite-0.0.0/rm_lite/tools_1d/models_ns/m2.py +69 -0
  30. rm_lite-0.0.0/rm_lite/tools_1d/models_ns/m3.py +136 -0
  31. rm_lite-0.0.0/rm_lite/tools_1d/models_ns/m4.py +145 -0
  32. rm_lite-0.0.0/rm_lite/tools_1d/models_ns/m5.py +70 -0
  33. rm_lite-0.0.0/rm_lite/tools_1d/models_ns/m6.py +143 -0
  34. rm_lite-0.0.0/rm_lite/tools_1d/models_ns/m7.py +76 -0
  35. rm_lite-0.0.0/rm_lite/tools_1d/qufit.py +639 -0
  36. rm_lite-0.0.0/rm_lite/tools_1d/rmclean.py +628 -0
  37. rm_lite-0.0.0/rm_lite/tools_1d/rmsynth.py +196 -0
  38. rm_lite-0.0.0/rm_lite/tools_3d/__init__.py +5 -0
  39. rm_lite-0.0.0/rm_lite/tools_3d/fitcube.py +629 -0
  40. rm_lite-0.0.0/rm_lite/tools_3d/peak_fit.py +497 -0
  41. rm_lite-0.0.0/rm_lite/tools_3d/rescale_model.py +342 -0
  42. rm_lite-0.0.0/rm_lite/tools_3d/rmclean.py +550 -0
  43. rm_lite-0.0.0/rm_lite/tools_3d/rmsynth.py +978 -0
  44. rm_lite-0.0.0/rm_lite/utils/__init__.py +7 -0
  45. rm_lite-0.0.0/rm_lite/utils/clean.py +954 -0
  46. rm_lite-0.0.0/rm_lite/utils/fitting.py +335 -0
  47. rm_lite-0.0.0/rm_lite/utils/logging.py +76 -0
  48. rm_lite-0.0.0/rm_lite/utils/synthesis.py +1399 -0
  49. rm_lite-0.0.0/rm_lite/utils/types.py +8 -0
  50. rm_lite-0.0.0/tests/__init__.py +0 -0
  51. rm_lite-0.0.0/tests/test_nufft.py +442 -0
  52. rm_lite-0.0.0/tests/test_qa.py +354 -0
  53. rm_lite-0.0.0/tests/test_rmsynth.py +190 -0
  54. rm_lite-0.0.0/tests/test_synthesis_utils.py +36 -0
@@ -0,0 +1,89 @@
1
+ See the [Scientific Python Developer Guide][spc-dev-intro] for a detailed
2
+ description of best practices for developing scientific packages.
3
+
4
+ [spc-dev-intro]: https://learn.scientific-python.org/development/
5
+
6
+ # Quick development
7
+
8
+ The fastest way to start with development is to use nox. If you don't have nox,
9
+ you can use `pipx run nox` to run it without installing, or `pipx install nox`.
10
+ If you don't have pipx (pip for applications), then you can install with
11
+ `pip install pipx` (the only case were installing an application with regular
12
+ pip is reasonable). If you use macOS, then pipx and nox are both in brew, use
13
+ `brew install pipx nox`.
14
+
15
+ To use, run `nox`. This will lint and test using every installed version of
16
+ Python on your system, skipping ones that are not installed. You can also run
17
+ specific jobs:
18
+
19
+ ```console
20
+ $ nox -s lint # Lint only
21
+ $ nox -s tests # Python tests
22
+ $ nox -s docs -- --serve # Build and serve the docs
23
+ $ nox -s build # Make an SDist and wheel
24
+ ```
25
+
26
+ Nox handles everything for you, including setting up an temporary virtual
27
+ environment for each run.
28
+
29
+ # Setting up a development environment manually
30
+
31
+ You can set up a development environment by running:
32
+
33
+ ```bash
34
+ python3 -m venv .venv
35
+ source ./.venv/bin/activate
36
+ pip install -v -e .[dev]
37
+ ```
38
+
39
+ If you have the
40
+ [Python Launcher for Unix](https://github.com/brettcannon/python-launcher), you
41
+ can instead do:
42
+
43
+ ```bash
44
+ py -m venv .venv
45
+ py -m install -v -e .[dev]
46
+ ```
47
+
48
+ # Pre-commit
49
+
50
+ You should prepare pre-commit, which will help you by checking that commits pass
51
+ required checks:
52
+
53
+ ```bash
54
+ pip install pre-commit # or brew install pre-commit on macOS
55
+ pre-commit install # Will install a pre-commit hook into the git repo
56
+ ```
57
+
58
+ You can also/alternatively run `pre-commit run` (changes only) or
59
+ `pre-commit run --all-files` to check even without installing the hook.
60
+
61
+ # Testing
62
+
63
+ Use pytest to run the unit checks:
64
+
65
+ ```bash
66
+ pytest
67
+ ```
68
+
69
+ # Coverage
70
+
71
+ Use pytest-cov to generate coverage reports:
72
+
73
+ ```bash
74
+ pytest --cov=rm-lite
75
+ ```
76
+
77
+ # Building docs
78
+
79
+ You can build the docs using:
80
+
81
+ ```bash
82
+ nox -s docs
83
+ ```
84
+
85
+ You can see a preview with:
86
+
87
+ ```bash
88
+ nox -s docs -- --serve
89
+ ```
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ # Maintain dependencies for GitHub Actions
4
+ - package-ecosystem: "github-actions"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "weekly"
8
+ groups:
9
+ actions:
10
+ patterns:
11
+ - "*"
@@ -0,0 +1,5 @@
1
+ changelog:
2
+ exclude:
3
+ authors:
4
+ - dependabot
5
+ - pre-commit-ci
@@ -0,0 +1,60 @@
1
+ name: CD
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ pull_request:
6
+ push:
7
+ branches:
8
+ - main
9
+ release:
10
+ types:
11
+ - published
12
+
13
+ concurrency:
14
+ group: ${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress: true
16
+
17
+ env:
18
+ # Many color libraries just need this to be set to any value, but at least
19
+ # one distinguishes color depth, where "3" -> "256-bit color".
20
+ FORCE_COLOR: 3
21
+
22
+ jobs:
23
+ dist:
24
+ name: Distribution build
25
+ runs-on: ubuntu-latest
26
+
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ with:
30
+ fetch-depth: 0
31
+
32
+ - uses: hynek/build-and-inspect-python-package@v2
33
+
34
+ publish:
35
+ needs: [dist]
36
+ name: Publish to PyPI
37
+ environment: pypi
38
+ permissions:
39
+ id-token: write
40
+ attestations: write
41
+ contents: read
42
+ runs-on: ubuntu-latest
43
+ if: github.event_name == 'release' && github.event.action == 'published'
44
+
45
+ steps:
46
+ - uses: actions/download-artifact@v4
47
+ with:
48
+ name: Packages
49
+ path: dist
50
+
51
+ - name: Generate artifact attestation for sdist and wheel
52
+ uses: actions/attest-build-provenance@v2.2.0
53
+ with:
54
+ subject-path: "dist/*"
55
+
56
+ - uses: pypa/gh-action-pypi-publish@release/v1
57
+ # with:
58
+ # Remember to tell (test-)pypi about this repo before publishing
59
+ # Remove this line to publish to PyPI
60
+ # repository-url: https://test.pypi.org/legacy/
@@ -0,0 +1,72 @@
1
+ name: CI
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ pull_request:
6
+ push:
7
+ branches:
8
+ - main
9
+
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ env:
15
+ # Many color libraries just need this to be set to any value, but at least
16
+ # one distinguishes color depth, where "3" -> "256-bit color".
17
+ FORCE_COLOR: 3
18
+
19
+ jobs:
20
+ pre-commit:
21
+ name: Format
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ with:
26
+ fetch-depth: 0
27
+ - uses: actions/setup-python@v5
28
+ with:
29
+ python-version: "3.x"
30
+ - uses: pre-commit/action@v3.0.1
31
+ with:
32
+ extra_args: --hook-stage manual --all-files
33
+
34
+ checks:
35
+ name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
36
+ runs-on: ${{ matrix.runs-on }}
37
+ needs: [pre-commit]
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
42
+ runs-on: [ubuntu-latest]
43
+
44
+ steps:
45
+ - uses: actions/checkout@v4
46
+ with:
47
+ fetch-depth: 0
48
+
49
+ - uses: actions/setup-python@v5
50
+ with:
51
+ python-version: ${{ matrix.python-version }}
52
+ allow-prereleases: true
53
+
54
+ - name: Install package
55
+ run: python -m pip install uv && uv pip install .[dev] --system
56
+
57
+ - name: Test package
58
+ run: >-
59
+ python -m pytest -ra --cov --cov-report=xml --cov-report=term
60
+ --durations=20 --junitxml=junit.xml -o junit_family=legacy
61
+
62
+ - name: Upload coverage reports to Codecov
63
+ uses: codecov/codecov-action@v5
64
+ with:
65
+ token: ${{ secrets.CODECOV_TOKEN }}
66
+ slug: AlecThomson/rm-lite
67
+
68
+ - name: Upload test results to Codecov
69
+ if: ${{ !cancelled() }}
70
+ uses: codecov/test-results-action@v1
71
+ with:
72
+ token: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,157 @@
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
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
98
+ __pypackages__/
99
+
100
+ # Celery stuff
101
+ celerybeat-schedule
102
+ celerybeat.pid
103
+
104
+ # SageMath parsed files
105
+ *.sage.py
106
+
107
+ # Environments
108
+ .env
109
+ .venv
110
+ env/
111
+ venv/
112
+ ENV/
113
+ env.bak/
114
+ venv.bak/
115
+
116
+ # Spyder project settings
117
+ .spyderproject
118
+ .spyproject
119
+
120
+ # Rope project settings
121
+ .ropeproject
122
+
123
+ # mkdocs documentation
124
+ /site
125
+
126
+ # mypy
127
+ .mypy_cache/
128
+ .dmypy.json
129
+ dmypy.json
130
+
131
+ # Pyre type checker
132
+ .pyre/
133
+
134
+ # pytype static type analyzer
135
+ .pytype/
136
+
137
+ # Cython debug symbols
138
+ cython_debug/
139
+
140
+
141
+ # Tests
142
+ simdata
143
+ tests/*/
144
+ tests/*.pdf
145
+ *.pdf
146
+ .vscode/settings.json
147
+ dist/*
148
+ build/*
149
+ RM.egg-info/*
150
+ RM_tools.egg-info/*
151
+ tests/simdata
152
+ tests/models_ns
153
+ *egg-info
154
+ .DS_Store
155
+ *.ipynb
156
+ scratch.ipynb
157
+ rm_lite/_version.py
@@ -0,0 +1,87 @@
1
+ ci:
2
+ autoupdate_commit_msg: "chore: update pre-commit hooks"
3
+ autofix_commit_msg: "style: pre-commit fixes"
4
+
5
+ repos:
6
+ - repo: https://github.com/adamchainz/blacken-docs
7
+ rev: "1.19.1"
8
+ hooks:
9
+ - id: blacken-docs
10
+ additional_dependencies: [black==24.*]
11
+
12
+ - repo: https://github.com/pre-commit/pre-commit-hooks
13
+ rev: "v5.0.0"
14
+ hooks:
15
+ - id: check-added-large-files
16
+ - id: check-case-conflict
17
+ - id: check-merge-conflict
18
+ - id: check-symlinks
19
+ - id: check-yaml
20
+ - id: debug-statements
21
+ - id: end-of-file-fixer
22
+ - id: mixed-line-ending
23
+ - id: name-tests-test
24
+ args: ["--pytest-test-first"]
25
+ - id: requirements-txt-fixer
26
+ - id: trailing-whitespace
27
+
28
+ - repo: https://github.com/pre-commit/pygrep-hooks
29
+ rev: "v1.10.0"
30
+ hooks:
31
+ - id: rst-backticks
32
+ - id: rst-directive-colons
33
+ - id: rst-inline-touching-normal
34
+
35
+ - repo: https://github.com/pre-commit/mirrors-prettier
36
+ rev: "v4.0.0-alpha.8"
37
+ hooks:
38
+ - id: prettier
39
+ types_or: [yaml, markdown, html, css, scss, javascript, json]
40
+ args: [--prose-wrap=always]
41
+
42
+ - repo: https://github.com/astral-sh/ruff-pre-commit
43
+ rev: "v0.9.3"
44
+ hooks:
45
+ - id: ruff
46
+ args: ["--fix", "--show-fixes"]
47
+ - id: ruff-format
48
+
49
+ - repo: https://github.com/pre-commit/mirrors-mypy
50
+ rev: "v1.14.1"
51
+ hooks:
52
+ - id: mypy
53
+ files: src|tests
54
+ args: ["--ignore-missing-imports"]
55
+ additional_dependencies:
56
+ - pytest
57
+
58
+ - repo: https://github.com/codespell-project/codespell
59
+ rev: "v2.4.1"
60
+ hooks:
61
+ - id: codespell
62
+
63
+ - repo: https://github.com/shellcheck-py/shellcheck-py
64
+ rev: "v0.10.0.1"
65
+ hooks:
66
+ - id: shellcheck
67
+
68
+ - repo: local
69
+ hooks:
70
+ - id: disallow-caps
71
+ name: Disallow improper capitalization
72
+ language: pygrep
73
+ entry: PyBind|Numpy|Cmake|CCache|Github|PyTest
74
+ exclude: .pre-commit-config.yaml
75
+
76
+ - repo: https://github.com/abravalheri/validate-pyproject
77
+ rev: "v0.23"
78
+ hooks:
79
+ - id: validate-pyproject
80
+ additional_dependencies: ["validate-pyproject-schema-store[all]"]
81
+
82
+ - repo: https://github.com/python-jsonschema/check-jsonschema
83
+ rev: "0.31.1"
84
+ hooks:
85
+ - id: check-dependabot
86
+ - id: check-github-workflows
87
+ - id: check-readthedocs
@@ -0,0 +1,17 @@
1
+ # Read the Docs configuration file
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ version: 2
5
+
6
+ build:
7
+ os: ubuntu-22.04
8
+ tools:
9
+ python: "3.12"
10
+ commands:
11
+ - asdf plugin add uv
12
+ - asdf install uv latest
13
+ - asdf global uv latest
14
+ - uv venv
15
+ - uv pip install .[docs]
16
+ - .venv/bin/python -m sphinx -T -b html -d docs/_build/doctrees -D
17
+ language=en docs $READTHEDOCS_OUTPUT/html
rm_lite-0.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Alec Thomson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
rm_lite-0.0.0/PKG-INFO ADDED
@@ -0,0 +1,166 @@
1
+ Metadata-Version: 2.4
2
+ Name: rm-lite
3
+ Version: 0.0.0
4
+ Summary: A mini versions of RM-Tools
5
+ Author-email: Alec Thomson <alec.thomson@csiro.au>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Alec Thomson
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+ License-File: LICENSE
28
+ Classifier: Development Status :: 1 - Planning
29
+ Classifier: Intended Audience :: Developers
30
+ Classifier: Intended Audience :: Science/Research
31
+ Classifier: License :: OSI Approved :: BSD License
32
+ Classifier: Operating System :: OS Independent
33
+ Classifier: Programming Language :: Python
34
+ Classifier: Programming Language :: Python :: 3
35
+ Classifier: Programming Language :: Python :: 3 :: Only
36
+ Classifier: Programming Language :: Python :: 3.9
37
+ Classifier: Programming Language :: Python :: 3.10
38
+ Classifier: Programming Language :: Python :: 3.11
39
+ Classifier: Programming Language :: Python :: 3.12
40
+ Classifier: Topic :: Scientific/Engineering
41
+ Classifier: Typing :: Typed
42
+ Requires-Python: >=3.9
43
+ Requires-Dist: astropy>=6
44
+ Requires-Dist: bilby>=1.1.5
45
+ Requires-Dist: corner
46
+ Requires-Dist: deprecation
47
+ Requires-Dist: emcee
48
+ Requires-Dist: finufft
49
+ Requires-Dist: nestle
50
+ Requires-Dist: numpy>=1.22
51
+ Requires-Dist: polars
52
+ Requires-Dist: scipy
53
+ Requires-Dist: tdqm
54
+ Requires-Dist: uncertainties
55
+ Provides-Extra: dev
56
+ Requires-Dist: nox; extra == 'dev'
57
+ Requires-Dist: pre-commit; extra == 'dev'
58
+ Requires-Dist: pytest; extra == 'dev'
59
+ Requires-Dist: pytest-cov; extra == 'dev'
60
+ Requires-Dist: ruff; extra == 'dev'
61
+ Provides-Extra: docs
62
+ Requires-Dist: furo>=2023.08.17; extra == 'docs'
63
+ Requires-Dist: jupyter; extra == 'docs'
64
+ Requires-Dist: matplotlib; extra == 'docs'
65
+ Requires-Dist: myst-parser>=0.13; extra == 'docs'
66
+ Requires-Dist: nbsphinx; extra == 'docs'
67
+ Requires-Dist: sphinx-autoapi; extra == 'docs'
68
+ Requires-Dist: sphinx-autodoc-typehints; extra == 'docs'
69
+ Requires-Dist: sphinx-copybutton; extra == 'docs'
70
+ Requires-Dist: sphinx>=7.0; extra == 'docs'
71
+ Description-Content-Type: text/markdown
72
+
73
+ # RM-lite
74
+
75
+ [![Actions Status][actions-badge]][actions-link]
76
+ [![Codecov Status][codecov-badge]][codecov-link]
77
+ [![Documentation Status][rtd-badge]][rtd-link]
78
+
79
+ [![PyPI version][pypi-version]][pypi-link]
80
+
81
+ <!-- [![Conda-Forge][conda-badge]][conda-link] -->
82
+
83
+ [![PyPI platforms][pypi-platforms]][pypi-link]
84
+
85
+ <!-- [![GitHub Discussion][github-discussions-badge]][github-discussions-link] -->
86
+
87
+ <!-- SPHINX-START -->
88
+
89
+ <!-- prettier-ignore-start -->
90
+ [codecov-link]: https://codecov.io/gh/AlecThomson/rm-lite
91
+ [codecov-badge]: https://codecov.io/gh/AlecThomson/rm-lite/graph/badge.svg?token=7EARBRN20D
92
+ [actions-badge]: https://github.com/AlecThomson/rm-lite/workflows/CI/badge.svg
93
+ [actions-link]: https://github.com/AlecThomson/rm-lite/actions
94
+ [conda-badge]: https://img.shields.io/conda/vn/conda-forge/rm-lite
95
+ [conda-link]: https://github.com/conda-forge/rm-lite-feedstock
96
+ [github-discussions-badge]: https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github
97
+ [github-discussions-link]: https://github.com/AlecThomson/rm-lite/discussions
98
+ [pypi-link]: https://pypi.org/project/rm-lite/
99
+ [pypi-platforms]: https://img.shields.io/pypi/pyversions/rm-lite
100
+ [pypi-version]: https://img.shields.io/pypi/v/rm-lite
101
+ [rtd-badge]: https://readthedocs.org/projects/rm-lite/badge/?version=latest
102
+ [rtd-link]: https://rm-lite.readthedocs.io/en/latest/?badge=latest
103
+
104
+ <!-- prettier-ignore-end -->
105
+
106
+ A mini fork of RM-Tools - RM-synthesis, RM-clean and QU-fitting on polarised
107
+ radio spectra.
108
+
109
+ This just exposes a Python API. No plotting, I/O utilities, or CLI are provided.
110
+ See the main fork of [RM-Tools](https://github.com/CIRADA-Tools/RM-Tools) for
111
+ that functionality.
112
+
113
+ The goal of this project is to provide low code surface area with high
114
+ reliability, performance, and developer ergonomics.
115
+
116
+ _**Warning:** This is very much a work-in-progress. Do not expect stability for
117
+ a while._
118
+
119
+ ## Installation
120
+
121
+ PyPI release:
122
+ ```
123
+ pip install rm-lite
124
+ ```
125
+
126
+ Current GitHub `main` commit:
127
+ ```
128
+ pip install git+https://github.com/AlecThomson/rm-lite.git
129
+ ```
130
+
131
+ ## Citing
132
+
133
+ If you use this package in a publication, please cite main fork's
134
+ [ASCL entry](https://ui.adsabs.harvard.edu/abs/2020ascl.soft05003P/abstract) for
135
+ the time being.
136
+
137
+ ## License
138
+
139
+ MIT
140
+
141
+ ## Contributing
142
+
143
+ Contributions are welcome. Questions, bug reports, and feature requests can be
144
+ posted to the GitHub issues page.
145
+
146
+ The development dependencies can be installed via `pip` from PyPI:
147
+
148
+ ```bash
149
+ pip install "rm-lite[dev]"
150
+ ```
151
+
152
+ or for a local clone:
153
+
154
+ ```bash
155
+ cd rm-lite
156
+ pip install ".[dev]"
157
+ ```
158
+
159
+ Code formatting and style is handled by `ruff`, with tests run by `pytest`. A
160
+ `pre-commit` hook is available to handle the autoformatting. After installing
161
+ the `dev` dependencies, you can install the hooks by running:
162
+
163
+ ```bash
164
+ cd rm-lite
165
+ pre-commit install
166
+ ```