From 3d5ad7aaf3fa478342af863e3700b5a8681a8cb8 Mon Sep 17 00:00:00 2001 From: Felix Dangel Date: Fri, 30 Apr 2021 09:27:54 +0200 Subject: [PATCH] [FIX] Use correct shift between start and end in UpdateSize The old value was correctly documented to be 1, but wrongly set to 0. This lead to the UpdateSize being zero, because parameters from the same iteration would be used as start/end points in the computation. --- cockpit/quantities/update_size.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cockpit/quantities/update_size.py b/cockpit/quantities/update_size.py index 0af9d9c..0af557b 100644 --- a/cockpit/quantities/update_size.py +++ b/cockpit/quantities/update_size.py @@ -10,10 +10,10 @@ class UpdateSize(TwoStepQuantity): """str: String under which the parameters are cached for computation. Default: ``'params'``. """ - SAVE_SHIFT = 0 - """int: Difference between iteration at which information is computed versus - iteration under which it is stored. For instance, if set to ``1``, the - information computed at iteration ``n + 1`` is saved under iteration ``n``. + SAVE_SHIFT = 1 + """int: Difference between iteration at which information is computed versus + iteration under which it is stored. For instance, if set to ``1``, the + information computed at iteration ``n + 1`` is saved under iteration ``n``. Defaults to ``1``. """