From 690dae3fb03d24577cf11b94d83bc4c6cd3436c4 Mon Sep 17 00:00:00 2001 From: DavAug Date: Sat, 23 May 2026 15:33:50 +0200 Subject: [PATCH 1/3] fix --- chi/_problems.py | 2 +- chi/plots/_residuals.py | 4 ++-- chi/tests/test_inference.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chi/_problems.py b/chi/_problems.py index 195818fb..7815cd63 100644 --- a/chi/_problems.py +++ b/chi/_problems.py @@ -324,7 +324,7 @@ def _extract_covariates(self, covariate_names): for idn, _id in enumerate(self._ids): mask = temp[self._id_key] == _id covariates[idn, idc] = \ - temp.loc[mask, self._value_key].dropna().values + temp.loc[mask, self._value_key].dropna().values.squeeze() return covariates diff --git a/chi/plots/_residuals.py b/chi/plots/_residuals.py index 01c0cfdb..c85212b5 100644 --- a/chi/plots/_residuals.py +++ b/chi/plots/_residuals.py @@ -94,11 +94,11 @@ def _add_predicted_versus_observed_scatter_plot( if show_residuals is True: # Compute residuals of observations from mean predictions - observations -= mean_predictions + observations = observations - mean_predictions if show_relative is True: # Normalise observations by mean predictions - observations /= mean_predictions + observations = observations / mean_predictions # Plot mean predictions versus observations color = colors[index % n_colors] diff --git a/chi/tests/test_inference.py b/chi/tests/test_inference.py index e7ef7cea..2704db7f 100644 --- a/chi/tests/test_inference.py +++ b/chi/tests/test_inference.py @@ -783,7 +783,7 @@ def test_run(self): self.assertEqual(ids[5], str(self.ids[5])) self.assertEqual(ids[6], str(self.ids[6])) self.assertEqual(ids[7], str(self.ids[7])) - self.assertIsNone(ids[8]) + self.assertTrue(np.isnan(ids[8]).all()) parameters = result['Parameter'].unique() self.assertEqual(len(parameters), 16) From 922599546ce2bd13156e232d2ce0ab137616849b Mon Sep 17 00:00:00 2001 From: DavAug Date: Sat, 23 May 2026 15:37:11 +0200 Subject: [PATCH 2/3] update copyright --- LICENSE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.md b/LICENSE.md index 32914e2a..a1198c51 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2025, David Augustin +Copyright (c) 2026, David Augustin All rights reserved. Redistribution and use in source and binary forms, with or without From d017170b7341aa3c27fbeaf2e5a7c398988f2e70 Mon Sep 17 00:00:00 2001 From: DavAug Date: Sat, 23 May 2026 16:05:35 +0200 Subject: [PATCH 3/3] Introduce upper limit for arviz until caught up with changes --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3a644594..21ad7af3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ classifiers = [ ] dependencies = [ - 'arviz>=0.17', + 'arviz>=0.17, <=0.23.4', 'myokit>=1.34', 'numpy>=1.17', 'pandas>=0.24',