Skip to content
Merged

Dev #134

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3a39b95
update the docstring
leslieDLcy Dec 28, 2025
4e16be9
clear joss paper
leslieDLcy Dec 28, 2025
c4ba90e
added tmcmc example in docs
leslieDLcy Dec 28, 2025
0527352
docs format updating
leslieDLcy Dec 28, 2025
224a5ce
added `KNN_calibration` example in docs
leslieDLcy Dec 28, 2025
bae2dc3
added `data_peeling` notebook
leslieDLcy Dec 28, 2025
ba863d3
fix the power bug when base p-box straddles 0
leslieDLcy Dec 28, 2025
2c33e36
update docstrings
leslieDLcy Dec 29, 2025
84069cf
refactor tmcmc
leslieDLcy Dec 29, 2025
bc7004d
updated TMCMC signature
leslieDLcy Dec 29, 2025
1397562
added the capacity of pba.D as prior distributions of tmcmc
leslieDLcy Dec 29, 2025
2624f40
added tmcmc capability to reload trace object
leslieDLcy Dec 29, 2025
a7c6c36
updated docstring
leslieDLcy Dec 30, 2025
1b1eb0a
added get_HDI and get_top_samples from posterior tmcmc
leslieDLcy Dec 30, 2025
4c4ba35
added transform trace function
leslieDLcy Dec 30, 2025
5a468df
fixed error of transform trace
leslieDLcy Dec 30, 2025
0918549
fixed inconsistencie between trace
leslieDLcy Dec 30, 2025
a137d2f
fixed an error
leslieDLcy Dec 30, 2025
26d9578
update doc example styles
leslieDLcy Jan 2, 2026
fd81060
added init imports
leslieDLcy Jan 2, 2026
f4bc780
update IF docstring
leslieDLcy Jan 2, 2026
6db1856
added plot func for one axis
leslieDLcy Jan 3, 2026
263295b
added ".egg-info" in the .gitigonre
leslieDLcy Jan 3, 2026
16cef2f
fixed error in "tests/test_construction.py"
leslieDLcy Jan 3, 2026
23f439a
fixed error in "test_pbox.py"
leslieDLcy Jan 3, 2026
80658f7
fixed error in tmcmc test
leslieDLcy Jan 3, 2026
86c0872
fixed all tests bugs due to version incompatbility
leslieDLcy Jan 3, 2026
d3d8a8b
added two CI for automated testing during pull to main and new versio…
leslieDLcy Jan 3, 2026
6e82a96
Merge pull request #132 from leslieDLcy/christmas
leslieDLcy Jan 3, 2026
2f6da1e
ready to new release
leslieDLcy Jan 3, 2026
4f9b5f2
try a fix
leslieDLcy Jan 3, 2026
929c399
fix the numpy version for now
leslieDLcy Jan 3, 2026
8028e95
Rename Sobol_analysis.py to sobol_analysis.py
leslieDLcy Jan 4, 2026
8329a09
fix a typo
leslieDLcy Jan 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .github/workflows/draft-pdf.yml

This file was deleted.

80 changes: 53 additions & 27 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# This workflow will upload a Python Package to PyPI when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
Expand All @@ -16,49 +8,83 @@ permissions:
contents: read

jobs:
release-build:
build:
name: Build distributions
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: "3.11"
cache: pip

- name: Build release distributions
- name: Build sdist and wheel
run: |
# NOTE: put your own distribution build steps here.
python -m pip install --upgrade pip
python -m pip install build
python -m build

- name: Upload distributions
- name: Upload dists
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

test-matrix:
name: Test wheel on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]

env:
MPLBACKEND: Agg

steps:
- uses: actions/checkout@v4

- name: Download dists
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Install wheel + test runner
run: |
python -m pip install --upgrade pip
python -m pip install dist/*.whl
python -m pip install pytest

- name: Smoke import
run: |
python -c "import pyuncertainnumber; print('Imported:', pyuncertainnumber.__name__)"

- name: Run tests
run: |
pytest -q

pypi-publish:
name: Publish to PyPI
runs-on: ubuntu-latest
needs:
- release-build
needs: test-matrix

permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
id-token: write # required for trusted publishing

# Dedicated environments with protections for publishing are strongly recommended.
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
environment:
name: pypi
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
# url: https://pypi.org/p/YOURPROJECT
#
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
# ALTERNATIVE: exactly, uncomment the following line instead:
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
# url: https://pypi.org/project/pyuncertainnumber/

steps:
- name: Retrieve release distributions
- name: Download dists
uses: actions/download-artifact@v4
with:
name: release-dists
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
env:
MPLBACKEND: Agg

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip

- name: Install package + test dependencies
run: |
python -m pip install --upgrade pip
python -m pip uninstall -y pyuncertainnumber || true
python -m pip install -e .[test]


- name: Run tests
run: |
pytest -q
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# local env
matplotlibrc.txt
*.egg-info/


# Data
Expand Down
Binary file added docs/source/_static/KNN_calibration_demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,72 @@ h2 {
/* center horizontally */
margin-right: auto;
display: block;
}

/* typography: global sizing + fine-grained tweaks */

/* Lower the global base size slightly; tweak if needed */
html,
:root {
font-size: 15px;
/* default ~16px; smaller overall typography */
}

/* Main article/content area */
.content,
.content>article,
.page,
.bd-article {
font-size: 0.95rem;
line-height: 1.6;
}

/* Headings: reduce sizes for better hierarchy on small screens */
h1 {
font-size: 2.0rem;
}

h2 {
font-size: 1.6rem;
}

h3 {
font-size: 1.3rem;
}

h4 {
font-size: 1.15rem;
}

/* Sidebar navigation */
.sidebar-tree .reference {
font-size: 0.95rem;
}

.sidebar-tree .caption {
font-size: 0.9rem;
}

/* Cards (sphinx-design) */
.sd-card .sd-card-header,
.sd-card .sd-card-title {
font-size: 1.1rem;
}

.sd-card .sd-card-body {
font-size: 0.95rem;
}

/* Code blocks and inline code */
pre,
code,
.highlight pre,
.literal-block {
font-size: 0.9rem;
}

/* Tables */
table.docutils,
.docutils .line-block {
font-size: 0.95rem;
}
Binary file added docs/source/_static/nested_ds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading