Skip to content

Commit

Permalink
[FIX] Use correct shift between start and end in UpdateSize (#3)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
f-dangel committed Apr 30, 2021
1 parent baf95ad commit 8195cf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cockpit/quantities/update_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
"""

Expand Down

0 comments on commit 8195cf2

Please sign in to comment.