Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
6 changes: 5 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# For more information see: https://docs.astral.sh/uv/guides/publish/

name: Publish Python Package
permissions:
contents: read

on:
release:
Expand All @@ -14,6 +16,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build
Expand All @@ -22,4 +26,4 @@ jobs:
env:
UV_PUBLISH_USERNAME: ${{ secrets.PMH_PYPI_USER }}
UV_PUBLISH_PASSWORD: ${{ secrets.PMH_PYPI_PASS }}
run: uv publish
run: uv publish
6 changes: 5 additions & 1 deletion .github/workflows/python-runlinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Lint with flake8
permissions:
contents: read

on:
push:
Expand All @@ -15,6 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
Expand All @@ -24,4 +28,4 @@ jobs:
# stop the build if there are Python syntax errors or undefined names
uvx flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude .git,docs/*
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
uvx flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
uvx flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
6 changes: 5 additions & 1 deletion .github/workflows/python-runtests-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Run units test (w/ img comps)
permissions:
contents: read

on:
push:
Expand All @@ -19,6 +21,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }} and uv
uses: astral-sh/setup-uv@v6
with:
Expand All @@ -28,4 +32,4 @@ jobs:
- name: Test with pytest
run: |
export MPL_IMGCOMP_TOLERANCE=20
uv run pytest --mpl
uv run pytest --mpl
10 changes: 7 additions & 3 deletions docs/tutorial/getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"ax1.set_xlabel(\"Base 10\")\n",
"ax1.set_yticks([])\n",
"\n",
"ax2.set_xscale(\"log\", basex=2)\n",
"ax2.set_xscale(\"log\", base=2)\n",
"ax2.set_xlim(left=2**-3, right=2**3)\n",
"ax2.set_xlabel(\"Base 2\")\n",
"ax2.set_yticks([])\n",
Expand Down Expand Up @@ -319,11 +319,15 @@
},
{
"cell_type": "raw",
"metadata": {},
"metadata": {
"vscode": {
"languageId": "raw"
}
},
"source": [
".. note::\n",
" The percentile and probability axes are plotted against the\n",
" same values. The difference is only that \"percentiles\" \n",
" same values. The difference is only that \"percentiles\"\n",
" are plotted on a linear scale."
]
},
Expand Down
3 changes: 3 additions & 0 deletions probscale/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def probplot(
specified, a minimal implementation of the standard normal
distribution will be used.

.. note::
This parameter is ignore when ``plottype="pp"``.

probax : string, optional (default = 'x')
The axis ('x' or 'y') that will serve as the probability (or
quantile) axis.
Expand Down
Loading