gx2 1.1.1.dev0__tar.gz → 1.2__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.
- {gx2-1.1.1.dev0 → gx2-1.2}/.github/workflows/publish.yml +0 -11
- gx2-1.2/.github/workflows/regen-docs.yml +47 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/.gitignore +1 -0
- gx2-1.2/GettingStarted.ipynb +1600 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/PKG-INFO +131 -47
- {gx2-1.1.1.dev0 → gx2-1.2}/README.md +130 -46
- gx2-1.2/getting-started/01_sample_histogram.png +0 -0
- gx2-1.2/getting-started/02_pdf_vs_histogram.png +0 -0
- gx2-1.2/getting-started/03_cdf_vs_histogram.png +0 -0
- gx2-1.2/getting-started/04_cdf_methods_nonelliptic.png +0 -0
- gx2-1.2/getting-started/05_pdf_methods_nonelliptic.png +0 -0
- gx2-1.2/getting-started/06_cdf_methods_elliptic.png +0 -0
- gx2-1.2/getting-started/07_pdf_methods_elliptic.png +0 -0
- gx2-1.2/getting-started/08_cdf_infinite_lower_tail.png +0 -0
- gx2-1.2/getting-started/09_pdf_infinite_upper_tail.png +0 -0
- gx2-1.2/getting-started/10_cdf_finite_lower_tail.png +0 -0
- gx2-1.2/getting-started/11_normal_scatter.png +0 -0
- gx2-1.2/getting-started/12_quadform_pdf_vs_histogram.png +0 -0
- gx2-1.2/getting-started/13_characteristic_function.png +0 -0
- gx2-1.2/getting-started/14_taylor_native.png +0 -0
- gx2-1.2/getting-started/15_taylor_boundary.png +0 -0
- gx2-1.2/getting-started/16_optimal_boundary.png +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2/__init__.py +4 -4
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2/_convert.py +35 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2/_dens_deriv.py +55 -38
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2/_distribution.py +8 -1
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2/_gradients.py +403 -137
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2/_methods.py +65 -11
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2/_ray.py +20 -6
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2.egg-info/PKG-INFO +131 -47
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2.egg-info/SOURCES.txt +4 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2.egg-info/scm_file_list.json +4 -0
- gx2-1.2/gx2.egg-info/scm_version.json +8 -0
- gx2-1.2/gx2_derivatives.md +603 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/scripts/build_getting_started.py +42 -33
- gx2-1.2/tests/bench_norm_err_bd.py +793 -0
- gx2-1.1.1.dev0/GettingStarted.ipynb +0 -1410
- gx2-1.1.1.dev0/getting-started/01_sample_histogram.png +0 -0
- gx2-1.1.1.dev0/getting-started/02_pdf_vs_histogram.png +0 -0
- gx2-1.1.1.dev0/getting-started/03_cdf_vs_histogram.png +0 -0
- gx2-1.1.1.dev0/getting-started/04_cdf_methods_nonelliptic.png +0 -0
- gx2-1.1.1.dev0/getting-started/05_pdf_methods_nonelliptic.png +0 -0
- gx2-1.1.1.dev0/getting-started/06_cdf_methods_elliptic.png +0 -0
- gx2-1.1.1.dev0/getting-started/07_pdf_methods_elliptic.png +0 -0
- gx2-1.1.1.dev0/getting-started/08_cdf_infinite_lower_tail.png +0 -0
- gx2-1.1.1.dev0/getting-started/09_pdf_infinite_upper_tail.png +0 -0
- gx2-1.1.1.dev0/getting-started/10_cdf_finite_lower_tail.png +0 -0
- gx2-1.1.1.dev0/getting-started/11_normal_scatter.png +0 -0
- gx2-1.1.1.dev0/getting-started/12_quadform_pdf_vs_histogram.png +0 -0
- gx2-1.1.1.dev0/getting-started/13_characteristic_function.png +0 -0
- gx2-1.1.1.dev0/getting-started/14_taylor_native.png +0 -0
- gx2-1.1.1.dev0/getting-started/15_taylor_boundary.png +0 -0
- gx2-1.1.1.dev0/gx2.egg-info/scm_version.json +0 -8
- {gx2-1.1.1.dev0 → gx2-1.2}/.gitattributes +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/.github/workflows/test.yml +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/CITATION.cff +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/LICENSE +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2/_basic.py +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2/_helpers.py +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2.egg-info/dependency_links.txt +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2.egg-info/requires.txt +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2.egg-info/top_level.txt +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/gx2_icon.png +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/pyproject.toml +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/setup.cfg +0 -0
- {gx2-1.1.1.dev0 → gx2-1.2}/tests/test_gx2.py +0 -0
|
@@ -24,17 +24,6 @@ jobs:
|
|
|
24
24
|
with:
|
|
25
25
|
python-version: "3.x"
|
|
26
26
|
|
|
27
|
-
- name: Regenerate getting-started docs from the notebook
|
|
28
|
-
# Re-runs GettingStarted.ipynb and refreshes getting-started/*.png and
|
|
29
|
-
# the README's worked-examples section from its output, so the
|
|
30
|
-
# published README always reflects a fresh run of the notebook. This
|
|
31
|
-
# is best-effort and never blocks the release -- if the notebook
|
|
32
|
-
# itself is out of date, keeping it current is on the maintainer.
|
|
33
|
-
run: |
|
|
34
|
-
python -m pip install -e ".[docs]"
|
|
35
|
-
python -m ipykernel install --user --name python3
|
|
36
|
-
python scripts/build_getting_started.py
|
|
37
|
-
|
|
38
27
|
- name: Build sdist and wheel
|
|
39
28
|
run: |
|
|
40
29
|
python -m pip install --upgrade build
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Sync getting-started docs from notebook
|
|
2
|
+
|
|
3
|
+
# Whenever GettingStarted.ipynb changes on main, copy its current (already
|
|
4
|
+
# rendered) outputs into README.md and getting-started/*.png, and commit the
|
|
5
|
+
# result back to main. This does NOT re-execute the notebook -- it only
|
|
6
|
+
# reflects whatever state you last saved it in, so this step stays fast.
|
|
7
|
+
#
|
|
8
|
+
# Pushes made with the default GITHUB_TOKEN don't trigger new workflow runs,
|
|
9
|
+
# so the commit this job makes won't cause an infinite loop.
|
|
10
|
+
on:
|
|
11
|
+
push:
|
|
12
|
+
branches: [main]
|
|
13
|
+
paths:
|
|
14
|
+
- GettingStarted.ipynb
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: write
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
regen-docs:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
with:
|
|
25
|
+
ref: main
|
|
26
|
+
|
|
27
|
+
- uses: actions/setup-python@v5
|
|
28
|
+
with:
|
|
29
|
+
python-version: "3.x"
|
|
30
|
+
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: python -m pip install nbformat
|
|
33
|
+
|
|
34
|
+
- name: Sync README and images from the notebook
|
|
35
|
+
run: python scripts/build_getting_started.py --no-execute
|
|
36
|
+
|
|
37
|
+
- name: Commit and push if changed
|
|
38
|
+
run: |
|
|
39
|
+
git config user.name "github-actions[bot]"
|
|
40
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
41
|
+
git add README.md getting-started/
|
|
42
|
+
if git diff --cached --quiet; then
|
|
43
|
+
echo "No changes to commit"
|
|
44
|
+
else
|
|
45
|
+
git commit -m "docs: sync getting-started assets from notebook"
|
|
46
|
+
git push origin HEAD:main
|
|
47
|
+
fi
|