Skip to content

Commit 97b43a9

Browse files
committed
More detailed description for get_recomputed()
1 parent 8ec74ef commit 97b43a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pySDC/projects/PinTSimE/battery_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ def get_data_dict(stats, use_adaptivity=True, use_switch_estimator=True, recompu
370370

371371
def get_recomputed(stats, type, sortby):
372372
"""
373-
Function that filters statistics after a recomputation.
373+
Function that filters statistics after a recomputation. It stores all value of a type before restart. If there are multiple values
374+
with same time point, it only stores the elements with unique times.
374375
375376
Args:
376377
stats (dict): Raw statistics from a controller run

pySDC/projects/PinTSimE/estimation_check_extended.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def check(cwd='./'):
149149

150150
if use_SE:
151151
switches = get_recomputed(stats, type='switch', sortby='time')
152-
assert (len(switches) >= 2), f"Expected at least 2 switches for dt: {dt_item}, got {len(switches)}!"
152+
assert len(switches) >= 2, f"Expected at least 2 switches for dt: {dt_item}, got {len(switches)}!"
153153

154154
check_solution(stats, dt_item, use_SE)
155155

0 commit comments

Comments
 (0)