Skip to content

Commit e0f9994

Browse files
observable.results resets during initialization
1 parent 4a2b1a2 commit e0f9994

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/yaqs/core/data_structures/simulation_parameters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def __init__(self, name: str, site: int):
1111
self.trajectories = None
1212

1313
def initialize(self, sim_params):
14+
self.results = None
1415
if type(sim_params) == PhysicsSimParams:
1516
if sim_params.sample_timesteps:
1617
self.trajectories = np.empty((sim_params.N, len(sim_params.times)), dtype=float)

0 commit comments

Comments
 (0)