Skip to content

Commit 81f2cff

Browse files
committed
Include scope recordings in checkpoints by default
1 parent c88fc29 commit 81f2cff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pathsim/simulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class name of the block or event
363363
return f"{type_name}_{idx}"
364364

365365

366-
def save_checkpoint(self, path, recordings=False):
366+
def save_checkpoint(self, path, recordings=True):
367367
"""Save simulation state to checkpoint files (JSON + NPZ).
368368
369369
Creates two files: {path}.json (structure/metadata) and
@@ -375,7 +375,7 @@ def save_checkpoint(self, path, recordings=False):
375375
path : str
376376
base path without extension
377377
recordings : bool
378-
include scope/spectrum recording data (default: False)
378+
include scope/spectrum recording data (default: True)
379379
"""
380380
#strip extension if provided
381381
if path.endswith('.json') or path.endswith('.npz'):

0 commit comments

Comments
 (0)