Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install the project
run: uv sync --locked --all-extras --dev
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the lock? If we want less noisy emails about dependency versions which dont matter (agreed) the dependabot is a github configured bot that I can (and have) turned off in the settings. It'd be good to keep the lock file as a record of a fully-resolving environment that worked, especially for any future development experience and replicating dev envs.

Copy link
Copy Markdown
Collaborator Author

@renecotyfanboy renecotyfanboy Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be good to keep the lock file as a record of a fully-resolving environment that worked

This seems to be a good argument. Let's keep it that way

run: uv sync --all-extras --dev

- name: Run tests
run: uv run pytest tests
Expand Down
9 changes: 7 additions & 2 deletions tests/test_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ def test_hdi_matches_arviz_unimodal(self) -> None:
bound = consumer.analysis.get_summary()[chain.name]["x"]
assert isinstance(bound, Bound)

az_hdi = az.stats.hdi(samples, hdi_prob=area)
az_hdi = az.stats.hdi(samples, hdi_prob=area) if az.__version__.startswith("0.") else az.hdi(samples, prob=area)

np.testing.assert_allclose([bound.lower, bound.upper], az_hdi, atol=5e-2)

def test_hdi_matches_arviz_high_sample_multimodal(self) -> None:
Expand All @@ -400,7 +401,11 @@ def test_hdi_matches_arviz_high_sample_multimodal(self) -> None:

consumer, chain = self._make_chain(samples, area=area, multimodal=True)
cc_intervals = np.array(consumer.analysis.get_parameter_hdi_intervals(chain, "x"))
az_intervals = np.asarray(az.stats.hdi(samples, hdi_prob=area, multimodal=True))

if az.__version__.startswith("0."):
az_intervals = np.asarray(az.stats.hdi(samples, hdi_prob=area, multimodal=True))
else:
az_intervals = np.asarray(az.hdi(samples, prob=area, method="multimodal"))

assert cc_intervals.shape == az_intervals.shape
np.testing.assert_allclose(cc_intervals, az_intervals, atol=8e-2)
Expand Down
Loading
Loading