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
4 changes: 2 additions & 2 deletions .github/workflows/autoformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -31,4 +31,4 @@ jobs:
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git diff --quiet || (git add -A && git commit -m "Auto-format code")
git push
git push
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -67,4 +67,4 @@ jobs:
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
packages-dir: dist/
4 changes: 2 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,6 @@ cython_debug/

# specific files
.DS_store

# uv lock file
uv.lock
17 changes: 15 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]

authors = [
Expand Down Expand Up @@ -44,14 +46,25 @@ dependencies = [
Homepage = "https://github.com/CausalInference/pySEQTarget"
Repository = "https://github.com/CausalInference/pySEQTarget"
"Bug Tracker" = "https://github.com/CausalInference/pySEQTarget/issues"

"Ryan O'Dea (ORCID)" = "https://orcid.org/0009-0000-0103-9546"
"Alejandro Szmulewicz (ORCID)" = "https://orcid.org/0000-0002-2664-802X"
"Tom Palmer (ORCID)" = "https://orcid.org/0000-0003-4655-4511"
"Miguel Hernan (ORCID)" = "https://orcid.org/0000-0003-1619-8456"
"University of Bristol (ROR)" = "https://ror.org/0524sp257"
"Harvard University (ROR)" = "https://ror.org/03vek6s52"

[dependency-groups]
dev = [
"black",
"isort",
"pytest",
"myst-parser",
"piccolo_theme",
"sphinx",
"sphinx-copybutton",
"sphinx-autodoc-typehints",
]

[tool.setuptools.packages.find]
where = ["."]
include = ["pySEQTarget*"]
Expand Down
27 changes: 15 additions & 12 deletions tests/test_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@ def test_parallel_ITT():
s.bootstrap()
s.fit()
matrix = s.outcome_model[0]["outcome"].summary2().tables[1]["Coef."].to_list()
assert matrix == [
-6.828506035553407,
0.18935003090041902,
0.12717241010542563,
0.033715156987629266,
-0.00014691202235029346,
0.044566165558944326,
0.0005787770439053261,
0.0032906669395295026,
-0.01339242049205771,
0.20072409918428052,
]
assert matrix == pytest.approx(
[
-6.828506035553407,
0.18935003090041902,
0.12717241010542563,
0.033715156987629266,
-0.00014691202235029346,
0.044566165558944326,
0.0005787770439053261,
0.0032906669395295026,
-0.01339242049205771,
0.20072409918428052,
],
abs=1e-6,
)