From 80f0b459a94b3bdc83177df76365412260172bca Mon Sep 17 00:00:00 2001 From: aloctavodia Date: Fri, 6 Sep 2024 12:15:40 -0300 Subject: [PATCH] copy psislw input --- arviz/stats/stats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/arviz/stats/stats.py b/arviz/stats/stats.py index 8afc733d67..e4c78d3bcb 100644 --- a/arviz/stats/stats.py +++ b/arviz/stats/stats.py @@ -917,6 +917,7 @@ def psislw(log_weights, reff=1.0): ...: az.psislw(-log_likelihood, reff=0.8) """ + log_weights = deepcopy(log_weights) if hasattr(log_weights, "__sample__"): n_samples = len(log_weights.__sample__) shape = [