wadoh-subtyping 0.3.3__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.
- wadoh_subtyping-0.3.3/.github/workflows/release.yml +136 -0
- wadoh_subtyping-0.3.3/.gitignore +209 -0
- wadoh_subtyping-0.3.3/.python-version +1 -0
- wadoh_subtyping-0.3.3/CHANGELOG.md +45 -0
- wadoh_subtyping-0.3.3/LICENSE +21 -0
- wadoh_subtyping-0.3.3/PKG-INFO +18 -0
- wadoh_subtyping-0.3.3/README.md +2 -0
- wadoh_subtyping-0.3.3/docs/.gitignore +1 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/_extension.yml +15 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/_gradethis.qmd +40 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/_knitr.qmd +32 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/live.lua +736 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/resources/live-runtime.css +1 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/resources/live-runtime.js +139 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/resources/pyodide-worker.js +12 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/resources/tinyyaml.lua +883 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/templates/interpolate.ojs +16 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/templates/pyodide-editor.ojs +16 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/templates/pyodide-evaluate.ojs +41 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/templates/pyodide-exercise.ojs +30 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/templates/pyodide-setup.ojs +129 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/templates/webr-editor.ojs +11 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/templates/webr-evaluate.ojs +40 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/templates/webr-exercise.ojs +29 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/templates/webr-setup.ojs +128 -0
- wadoh_subtyping-0.3.3/docs/_extensions/r-wasm/live/templates/webr-widget.ojs +10 -0
- wadoh_subtyping-0.3.3/docs/_extensions/shafayetShafee/bsicons/_extension.yml +8 -0
- wadoh_subtyping-0.3.3/docs/_extensions/shafayetShafee/bsicons/assets/css/bootstrap-icons.css +2107 -0
- wadoh_subtyping-0.3.3/docs/_extensions/shafayetShafee/bsicons/assets/webfonts/bootstrap-icons.woff +0 -0
- wadoh_subtyping-0.3.3/docs/_extensions/shafayetShafee/bsicons/assets/webfonts/bootstrap-icons.woff2 +0 -0
- wadoh_subtyping-0.3.3/docs/_extensions/shafayetShafee/bsicons/bsicons.lua +66 -0
- wadoh_subtyping-0.3.3/docs/_freeze/index/execute-results/html.json +12 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/col_test_performed_desc/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/col_test_result/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/collection_date/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/performing_lab/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/qa_multiple_subtypes/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/qa_wdrs_result/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/qa_wdrs_result_summary/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/specimen_source_site/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/specimen_type/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/submitter_other/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/submitting_lab/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/wdrs_result/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/wdrs_result_summary/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/wdrs_specimen_source/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/wdrs_specimen_type/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/reference/wdrs_test_performed/execute-results/html.json +16 -0
- wadoh_subtyping-0.3.3/docs/_freeze/site_libs/clipboard/clipboard.min.js +7 -0
- wadoh_subtyping-0.3.3/docs/_publish.yml +4 -0
- wadoh_subtyping-0.3.3/docs/_quarto.yml +134 -0
- wadoh_subtyping-0.3.3/docs/_setup.qmd +7 -0
- wadoh_subtyping-0.3.3/docs/_sidebar.yml +38 -0
- wadoh_subtyping-0.3.3/docs/assets/custom.theme +181 -0
- wadoh_subtyping-0.3.3/docs/assets/dark-styles.scss +256 -0
- wadoh_subtyping-0.3.3/docs/assets/navbar.html +1 -0
- wadoh_subtyping-0.3.3/docs/assets/navbar.js +128 -0
- wadoh_subtyping-0.3.3/docs/assets/navbar_cells.js +229 -0
- wadoh_subtyping-0.3.3/docs/assets/styles.scss +398 -0
- wadoh_subtyping-0.3.3/docs/guides/index.qmd +40 -0
- wadoh_subtyping-0.3.3/docs/index.qmd +93 -0
- wadoh_subtyping-0.3.3/docs/objects.json +1 -0
- wadoh_subtyping-0.3.3/docs/reference/col_test_performed_desc.qmd +103 -0
- wadoh_subtyping-0.3.3/docs/reference/col_test_result.qmd +268 -0
- wadoh_subtyping-0.3.3/docs/reference/collection_date.qmd +57 -0
- wadoh_subtyping-0.3.3/docs/reference/create_roster.qmd +22 -0
- wadoh_subtyping-0.3.3/docs/reference/dedup_roster.qmd +19 -0
- wadoh_subtyping-0.3.3/docs/reference/index.qmd +48 -0
- wadoh_subtyping-0.3.3/docs/reference/performing_lab.qmd +42 -0
- wadoh_subtyping-0.3.3/docs/reference/qa_multiple_subtypes.qmd +118 -0
- wadoh_subtyping-0.3.3/docs/reference/qa_test_performed_desc.qmd +25 -0
- wadoh_subtyping-0.3.3/docs/reference/qa_wdrs_result.qmd +48 -0
- wadoh_subtyping-0.3.3/docs/reference/qa_wdrs_result_summary.qmd +44 -0
- wadoh_subtyping-0.3.3/docs/reference/qa_wdrs_test_performed.qmd +23 -0
- wadoh_subtyping-0.3.3/docs/reference/rematch.qmd +6 -0
- wadoh_subtyping-0.3.3/docs/reference/run_pulls.qmd +68 -0
- wadoh_subtyping-0.3.3/docs/reference/specimen_source_site.qmd +49 -0
- wadoh_subtyping-0.3.3/docs/reference/specimen_type.qmd +48 -0
- wadoh_subtyping-0.3.3/docs/reference/submitter_other.qmd +69 -0
- wadoh_subtyping-0.3.3/docs/reference/submitting_lab.qmd +69 -0
- wadoh_subtyping-0.3.3/docs/reference/transform.qmd +19 -0
- wadoh_subtyping-0.3.3/docs/reference/wdrs_result.qmd +267 -0
- wadoh_subtyping-0.3.3/docs/reference/wdrs_result_summary.qmd +47 -0
- wadoh_subtyping-0.3.3/docs/reference/wdrs_specimen_source.qmd +48 -0
- wadoh_subtyping-0.3.3/docs/reference/wdrs_specimen_type.qmd +49 -0
- wadoh_subtyping-0.3.3/docs/reference/wdrs_test_performed.qmd +103 -0
- wadoh_subtyping-0.3.3/docs/reference/wrangle_phl.qmd +55 -0
- wadoh_subtyping-0.3.3/docs/reference/write_phl.qmd +50 -0
- wadoh_subtyping-0.3.3/docs/reference/write_rematch.qmd +6 -0
- wadoh_subtyping-0.3.3/package.json +3 -0
- wadoh_subtyping-0.3.3/pyproject.toml +34 -0
- wadoh_subtyping-0.3.3/scripts/__init__.py +0 -0
- wadoh_subtyping-0.3.3/scripts/installs.ipynb +69 -0
- wadoh_subtyping-0.3.3/scripts/main.ipynb +303 -0
- wadoh_subtyping-0.3.3/scripts/processor.py +468 -0
- wadoh_subtyping-0.3.3/scripts/pulls.py +131 -0
- wadoh_subtyping-0.3.3/scripts/pulls_notebook.ipynb +308 -0
- wadoh_subtyping-0.3.3/scripts/utils.py +78 -0
- wadoh_subtyping-0.3.3/scripts/write.py +248 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/__init__.py +2 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/extract.py +397 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/helpers.py +255 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/load.py +407 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/matching.py +374 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/processor.py +673 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/pulls.py +0 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/qa.py +397 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/rematch_funcs.py +378 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/transform.py +1777 -0
- wadoh_subtyping-0.3.3/src/wadoh_subtyping/wrangle.py +278 -0
- wadoh_subtyping-0.3.3/tests/__init__.py +0 -0
- wadoh_subtyping-0.3.3/tests/smoke_test.py +26 -0
- wadoh_subtyping-0.3.3/tests/test_col_test_performed_desc.py +54 -0
- wadoh_subtyping-0.3.3/tests/test_col_test_result.py +67 -0
- wadoh_subtyping-0.3.3/tests/test_performing_lab.py +51 -0
- wadoh_subtyping-0.3.3/tests/test_specimen_source_site.py +52 -0
- wadoh_subtyping-0.3.3/tests/test_specimen_type.py +52 -0
- wadoh_subtyping-0.3.3/tests/test_submitter_other.py +56 -0
- wadoh_subtyping-0.3.3/tests/test_submitting_lab.py +51 -0
- wadoh_subtyping-0.3.3/tests/test_wdrs_result.py +65 -0
- wadoh_subtyping-0.3.3/tests/test_wdrs_result_summary.py +51 -0
- wadoh_subtyping-0.3.3/tests/test_wdrs_specimen_source.py +52 -0
- wadoh_subtyping-0.3.3/tests/test_wdrs_specimen_type.py +52 -0
- wadoh_subtyping-0.3.3/tests/test_wdrs_test_performed.py +54 -0
- wadoh_subtyping-0.3.3/uv.lock +2666 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
name: Build, Test, Changelog, and Release Python Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
unit-tests:
|
|
11
|
+
name: Test Python Package
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Install uv
|
|
18
|
+
uses: astral-sh/setup-uv@v5
|
|
19
|
+
with:
|
|
20
|
+
version: "0.8.13" # pin a specific version is best practice
|
|
21
|
+
enable-cache: true
|
|
22
|
+
|
|
23
|
+
# install python in
|
|
24
|
+
- name: "Set up Python"
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version-file: "pyproject.toml"
|
|
28
|
+
|
|
29
|
+
- name: Run tests
|
|
30
|
+
# For example, using `pytest`
|
|
31
|
+
run: uv run pytest tests
|
|
32
|
+
|
|
33
|
+
build-and-release:
|
|
34
|
+
name: Generate Changelog, build, and release
|
|
35
|
+
runs-on: ubuntu-latest
|
|
36
|
+
needs: unit-tests # This makes sure the build job runs first
|
|
37
|
+
|
|
38
|
+
outputs:
|
|
39
|
+
released: ${{ steps.changelog.outputs.skipped == 'false' }}
|
|
40
|
+
|
|
41
|
+
steps:
|
|
42
|
+
# Checkout the code
|
|
43
|
+
- uses: actions/checkout@v4
|
|
44
|
+
|
|
45
|
+
# Generate changelog
|
|
46
|
+
- name: Conventional Changelog Action
|
|
47
|
+
id: changelog
|
|
48
|
+
uses: TriPSs/conventional-changelog-action@v3
|
|
49
|
+
with:
|
|
50
|
+
github-token: ${{ secrets.github_token }}
|
|
51
|
+
create-summary: true
|
|
52
|
+
|
|
53
|
+
- name: Set up uv
|
|
54
|
+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
|
|
55
|
+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
56
|
+
|
|
57
|
+
- name: Build package
|
|
58
|
+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
|
|
59
|
+
run: |
|
|
60
|
+
# VERSION=$(uvx dunamai from any --no-metadata --style pep440)
|
|
61
|
+
VERSION=$(uvx dunamai from any --no-metadata --style pep440 | sed -E 's/\.post[0-9]+\.dev[0-9]+//')
|
|
62
|
+
echo $VERSION
|
|
63
|
+
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $VERSION
|
|
64
|
+
uv build
|
|
65
|
+
|
|
66
|
+
# Attach the build assets to the GitHub release (only if changelog creation was successful)
|
|
67
|
+
- name: Create GitHub release and discussion
|
|
68
|
+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
|
|
69
|
+
run: |
|
|
70
|
+
gh release create $TAG $FILES \
|
|
71
|
+
--title "$TAG" \
|
|
72
|
+
--notes "$CHANGELOG" \
|
|
73
|
+
--discussion-category "Announcements"
|
|
74
|
+
env:
|
|
75
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
76
|
+
TAG: ${{ steps.changelog.outputs.tag }}
|
|
77
|
+
CHANGELOG: ${{ steps.changelog.outputs.clean_changelog }}
|
|
78
|
+
FILES: dist/*.tar.gz dist/*.whl
|
|
79
|
+
|
|
80
|
+
- name: Upload dist artifacts
|
|
81
|
+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
|
|
82
|
+
uses: actions/upload-artifact@v6
|
|
83
|
+
with:
|
|
84
|
+
name: dist
|
|
85
|
+
path: dist/
|
|
86
|
+
|
|
87
|
+
- name: Push Files for GitHub Action
|
|
88
|
+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
|
|
89
|
+
run: |
|
|
90
|
+
git config user.name "Your GitHub Actions Bot"
|
|
91
|
+
git config user.email "your-email@example.com"
|
|
92
|
+
git add .
|
|
93
|
+
git commit -m "Build package and update version"
|
|
94
|
+
git push
|
|
95
|
+
env:
|
|
96
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
97
|
+
|
|
98
|
+
publish:
|
|
99
|
+
name: publish to pypi
|
|
100
|
+
needs: build-and-release
|
|
101
|
+
if: >
|
|
102
|
+
needs.build-and-release.result == 'success' &&
|
|
103
|
+
needs.build-and-release.outputs.released == 'true'
|
|
104
|
+
|
|
105
|
+
runs-on: ubuntu-latest
|
|
106
|
+
|
|
107
|
+
environment:
|
|
108
|
+
name: pypi-env
|
|
109
|
+
|
|
110
|
+
permissions:
|
|
111
|
+
id-token: write
|
|
112
|
+
contents: read
|
|
113
|
+
|
|
114
|
+
steps:
|
|
115
|
+
- uses: actions/checkout@v6
|
|
116
|
+
|
|
117
|
+
- name: Install uv
|
|
118
|
+
uses: astral-sh/setup-uv@v7
|
|
119
|
+
|
|
120
|
+
- name: Set up Python
|
|
121
|
+
run: uv python install 3.11
|
|
122
|
+
|
|
123
|
+
- name: Download dist artifacts
|
|
124
|
+
uses: actions/download-artifact@v7
|
|
125
|
+
with:
|
|
126
|
+
name: dist
|
|
127
|
+
path: dist
|
|
128
|
+
|
|
129
|
+
- name: Smoke test (wheel)
|
|
130
|
+
run: uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
|
|
131
|
+
|
|
132
|
+
- name: Smoke test (source distribution)
|
|
133
|
+
run: uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
|
|
134
|
+
|
|
135
|
+
- name: Publish
|
|
136
|
+
run: uv publish
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
docs/_site
|
|
2
|
+
|
|
3
|
+
# Byte-compiled / optimized / DLL files
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[codz]
|
|
6
|
+
*$py.class
|
|
7
|
+
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging
|
|
12
|
+
.Python
|
|
13
|
+
build/
|
|
14
|
+
develop-eggs/
|
|
15
|
+
dist/
|
|
16
|
+
downloads/
|
|
17
|
+
eggs/
|
|
18
|
+
.eggs/
|
|
19
|
+
lib/
|
|
20
|
+
lib64/
|
|
21
|
+
parts/
|
|
22
|
+
sdist/
|
|
23
|
+
var/
|
|
24
|
+
wheels/
|
|
25
|
+
share/python-wheels/
|
|
26
|
+
*.egg-info/
|
|
27
|
+
.installed.cfg
|
|
28
|
+
*.egg
|
|
29
|
+
MANIFEST
|
|
30
|
+
|
|
31
|
+
# PyInstaller
|
|
32
|
+
# Usually these files are written by a python script from a template
|
|
33
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
34
|
+
*.manifest
|
|
35
|
+
*.spec
|
|
36
|
+
|
|
37
|
+
# Installer logs
|
|
38
|
+
pip-log.txt
|
|
39
|
+
pip-delete-this-directory.txt
|
|
40
|
+
|
|
41
|
+
# Unit test / coverage reports
|
|
42
|
+
htmlcov/
|
|
43
|
+
.tox/
|
|
44
|
+
.nox/
|
|
45
|
+
.coverage
|
|
46
|
+
.coverage.*
|
|
47
|
+
.cache
|
|
48
|
+
nosetests.xml
|
|
49
|
+
coverage.xml
|
|
50
|
+
*.cover
|
|
51
|
+
*.py.cover
|
|
52
|
+
.hypothesis/
|
|
53
|
+
.pytest_cache/
|
|
54
|
+
cover/
|
|
55
|
+
|
|
56
|
+
# Translations
|
|
57
|
+
*.mo
|
|
58
|
+
*.pot
|
|
59
|
+
|
|
60
|
+
# Django stuff:
|
|
61
|
+
*.log
|
|
62
|
+
local_settings.py
|
|
63
|
+
db.sqlite3
|
|
64
|
+
db.sqlite3-journal
|
|
65
|
+
|
|
66
|
+
# Flask stuff:
|
|
67
|
+
instance/
|
|
68
|
+
.webassets-cache
|
|
69
|
+
|
|
70
|
+
# Scrapy stuff:
|
|
71
|
+
.scrapy
|
|
72
|
+
|
|
73
|
+
# Sphinx documentation
|
|
74
|
+
docs/_build/
|
|
75
|
+
|
|
76
|
+
# PyBuilder
|
|
77
|
+
.pybuilder/
|
|
78
|
+
target/
|
|
79
|
+
|
|
80
|
+
# Jupyter Notebook
|
|
81
|
+
.ipynb_checkpoints
|
|
82
|
+
|
|
83
|
+
# IPython
|
|
84
|
+
profile_default/
|
|
85
|
+
ipython_config.py
|
|
86
|
+
|
|
87
|
+
# pyenv
|
|
88
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
89
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
90
|
+
# .python-version
|
|
91
|
+
|
|
92
|
+
# pipenv
|
|
93
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
94
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
95
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
96
|
+
# install all needed dependencies.
|
|
97
|
+
#Pipfile.lock
|
|
98
|
+
|
|
99
|
+
# UV
|
|
100
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
101
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
102
|
+
# commonly ignored for libraries.
|
|
103
|
+
#uv.lock
|
|
104
|
+
|
|
105
|
+
# poetry
|
|
106
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
107
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
108
|
+
# commonly ignored for libraries.
|
|
109
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
110
|
+
#poetry.lock
|
|
111
|
+
#poetry.toml
|
|
112
|
+
|
|
113
|
+
# pdm
|
|
114
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
115
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
116
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
117
|
+
#pdm.lock
|
|
118
|
+
#pdm.toml
|
|
119
|
+
.pdm-python
|
|
120
|
+
.pdm-build/
|
|
121
|
+
|
|
122
|
+
# pixi
|
|
123
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
124
|
+
#pixi.lock
|
|
125
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
126
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
127
|
+
.pixi
|
|
128
|
+
|
|
129
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
130
|
+
__pypackages__/
|
|
131
|
+
|
|
132
|
+
# Celery stuff
|
|
133
|
+
celerybeat-schedule
|
|
134
|
+
celerybeat.pid
|
|
135
|
+
|
|
136
|
+
# SageMath parsed files
|
|
137
|
+
*.sage.py
|
|
138
|
+
|
|
139
|
+
# Environments
|
|
140
|
+
.env
|
|
141
|
+
.envrc
|
|
142
|
+
.venv
|
|
143
|
+
env/
|
|
144
|
+
venv/
|
|
145
|
+
ENV/
|
|
146
|
+
env.bak/
|
|
147
|
+
venv.bak/
|
|
148
|
+
|
|
149
|
+
# Spyder project settings
|
|
150
|
+
.spyderproject
|
|
151
|
+
.spyproject
|
|
152
|
+
|
|
153
|
+
# Rope project settings
|
|
154
|
+
.ropeproject
|
|
155
|
+
|
|
156
|
+
# mkdocs documentation
|
|
157
|
+
/site
|
|
158
|
+
|
|
159
|
+
# mypy
|
|
160
|
+
.mypy_cache/
|
|
161
|
+
.dmypy.json
|
|
162
|
+
dmypy.json
|
|
163
|
+
|
|
164
|
+
# Pyre type checker
|
|
165
|
+
.pyre/
|
|
166
|
+
|
|
167
|
+
# pytype static type analyzer
|
|
168
|
+
.pytype/
|
|
169
|
+
|
|
170
|
+
# Cython debug symbols
|
|
171
|
+
cython_debug/
|
|
172
|
+
|
|
173
|
+
# PyCharm
|
|
174
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
175
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
176
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
177
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
178
|
+
#.idea/
|
|
179
|
+
|
|
180
|
+
# Abstra
|
|
181
|
+
# Abstra is an AI-powered process automation framework.
|
|
182
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
183
|
+
# Learn more at https://abstra.io/docs
|
|
184
|
+
.abstra/
|
|
185
|
+
|
|
186
|
+
# Visual Studio Code
|
|
187
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
188
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
189
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
190
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
191
|
+
# .vscode/
|
|
192
|
+
|
|
193
|
+
# Ruff stuff:
|
|
194
|
+
.ruff_cache/
|
|
195
|
+
|
|
196
|
+
# PyPI configuration file
|
|
197
|
+
.pypirc
|
|
198
|
+
|
|
199
|
+
# Cursor
|
|
200
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
201
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
202
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
203
|
+
.cursorignore
|
|
204
|
+
.cursorindexingignore
|
|
205
|
+
|
|
206
|
+
# Marimo
|
|
207
|
+
marimo/_static/
|
|
208
|
+
marimo/_lsp/
|
|
209
|
+
__marimo__/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.11
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
## [0.3.3](https://github.com/WA-EIP/wadoh_subtyping/compare/v0.3.2...v0.3.3) (2026-06-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add pyyaml ([7c12ea5](https://github.com/WA-EIP/wadoh_subtyping/commit/7c12ea58cda2fb46827524c323369c5a510b83ba))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.3.2](https://github.com/WA-EIP/wadoh_subtyping/compare/v0.3.1...v0.3.2) (2026-06-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* trigger pkg build ([e1a5bf2](https://github.com/WA-EIP/wadoh_subtyping/commit/e1a5bf2aa1a702b318e065927a6d1f0ebed649d4))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [0.3.1](https://github.com/WA-EIP/wadoh_subtyping/compare/v0.3.0...v0.3.1) (2026-06-03)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* trigger pkg build ([ad64b5f](https://github.com/WA-EIP/wadoh_subtyping/commit/ad64b5f811861d7158c8a82c33d4f3962040ea07))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [0.3.0](https://github.com/WA-EIP/wadoh_subtyping/compare/v0.2.0...v0.3.0) (2026-06-03)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* modularize functions ([4296a45](https://github.com/WA-EIP/wadoh_subtyping/commit/4296a452d8e270dbe793e28ed38afca03a3e8a68))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# [0.2.0](https://github.com/WA-EIP/wadoh_subtyping/compare/v0.1.2...v0.2.0) (2025-12-02)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* use sparkpl to convert spark to polars and vice versa ([a614031](https://github.com/WA-EIP/wadoh_subtyping/commit/a6140315f5b126cb51d53e963f1461866642d14c))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Washington State - Emerging Infections Program (EIP)
|
|
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.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: wadoh-subtyping
|
|
3
|
+
Version: 0.3.3
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Author-email: Frank Aragona <92396451+DOH-FAA3303@users.noreply.github.com>
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.11
|
|
8
|
+
Requires-Dist: databricks-sdk>=0.113.0
|
|
9
|
+
Requires-Dist: polars>=1.32.3
|
|
10
|
+
Requires-Dist: pyarrow>=21.0.0
|
|
11
|
+
Requires-Dist: pycap>=2.7.0
|
|
12
|
+
Requires-Dist: pyyaml>=6.0.2
|
|
13
|
+
Requires-Dist: sparkpl>=2.0.1
|
|
14
|
+
Requires-Dist: wadoh-raccoon>=0.4.3
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
# wadoh_subtyping
|
|
18
|
+
A Python package for transforming and processing RESPNET subtyping data
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/.quarto/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
title: Quarto Live
|
|
2
|
+
author: George Stagg
|
|
3
|
+
version: 0.1.3-dev
|
|
4
|
+
quarto-required: ">=1.4.0"
|
|
5
|
+
contributes:
|
|
6
|
+
filters:
|
|
7
|
+
- live.lua
|
|
8
|
+
formats:
|
|
9
|
+
common:
|
|
10
|
+
ojs-engine: true
|
|
11
|
+
filters:
|
|
12
|
+
- live.lua
|
|
13
|
+
html: default
|
|
14
|
+
revealjs: default
|
|
15
|
+
dashboard: default
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
```{webr}
|
|
2
|
+
#| edit: false
|
|
3
|
+
#| output: false
|
|
4
|
+
webr::install("gradethis", quiet = TRUE)
|
|
5
|
+
library(gradethis)
|
|
6
|
+
options(webr.exercise.checker = function(
|
|
7
|
+
label, user_code, solution_code, check_code, envir_result, evaluate_result,
|
|
8
|
+
envir_prep, last_value, engine, stage, ...
|
|
9
|
+
) {
|
|
10
|
+
if (is.null(check_code)) {
|
|
11
|
+
# No grading code, so just skip grading
|
|
12
|
+
invisible(NULL)
|
|
13
|
+
} else if (is.null(label)) {
|
|
14
|
+
list(
|
|
15
|
+
correct = FALSE,
|
|
16
|
+
type = "warning",
|
|
17
|
+
message = "All exercises must have a label."
|
|
18
|
+
)
|
|
19
|
+
} else if (is.null(solution_code)) {
|
|
20
|
+
list(
|
|
21
|
+
correct = FALSE,
|
|
22
|
+
type = "warning",
|
|
23
|
+
message = htmltools::tags$div(
|
|
24
|
+
htmltools::tags$p("A problem occurred grading this exercise."),
|
|
25
|
+
htmltools::tags$p(
|
|
26
|
+
"No solution code was found. Note that grading exercises using the ",
|
|
27
|
+
htmltools::tags$code("gradethis"),
|
|
28
|
+
"package requires a model solution to be included in the document."
|
|
29
|
+
)
|
|
30
|
+
)
|
|
31
|
+
)
|
|
32
|
+
} else {
|
|
33
|
+
gradethis::gradethis_exercise_checker(
|
|
34
|
+
label = label, solution_code = solution_code, user_code = user_code,
|
|
35
|
+
check_code = check_code, envir_result = envir_result,
|
|
36
|
+
evaluate_result = evaluate_result, envir_prep = envir_prep,
|
|
37
|
+
last_value = last_value, stage = stage, engine = engine)
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
```
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
```{r echo=FALSE}
|
|
2
|
+
# Setup knitr for handling {webr} and {pyodide} blocks
|
|
3
|
+
# TODO: With quarto-dev/quarto-cli#10169, we can implement this in a filter
|
|
4
|
+
|
|
5
|
+
# We'll handle `include: false` in Lua, always include cell in knitr output
|
|
6
|
+
knitr::opts_hooks$set(include = function(options) {
|
|
7
|
+
if (options$engine == "webr" || options$engine == "pyodide") {
|
|
8
|
+
options$include <- TRUE
|
|
9
|
+
}
|
|
10
|
+
options
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
# Passthrough engine for webr
|
|
14
|
+
knitr::knit_engines$set(webr = function(options) {
|
|
15
|
+
knitr:::one_string(c(
|
|
16
|
+
"```{webr}",
|
|
17
|
+
options$yaml.code,
|
|
18
|
+
options$code,
|
|
19
|
+
"```"
|
|
20
|
+
))
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
# Passthrough engine for pyodide
|
|
24
|
+
knitr::knit_engines$set(pyodide = function(options) {
|
|
25
|
+
knitr:::one_string(c(
|
|
26
|
+
"```{pyodide}",
|
|
27
|
+
options$yaml.code,
|
|
28
|
+
options$code,
|
|
29
|
+
"```"
|
|
30
|
+
))
|
|
31
|
+
})
|
|
32
|
+
```
|