Skip to content

Commit 8b2772b

Browse files
Merge pull request #8 from PhysicsLuis666/fix_hist
Fix histogram output filename error.
2 parents 94d4ad4 + 9ea509e commit 8b2772b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

orbit_tools/diag.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def __init__(
9292
**kwargs
9393
) -> None:
9494
super().__init__(**kwargs)
95-
95+
96+
self.node = None
9697
self.index =0
9798
self.axis = axis
9899
self.ndim = len(axis)
@@ -166,7 +167,9 @@ def compute_histogram(self, bunch: Bunch) -> np.ndarray:
166167
def track(self, params_dict: dict) -> None:
167168
bunch_copy = Bunch()
168169
bunch = params_dict["bunch"]
170+
node = params_dict["node"]
169171
bunch.copyBunchTo(bunch_copy)
172+
self.node = node
170173

171174
if self.transform is not None:
172175
bunch_copy = self.transform(bunch_copy)

0 commit comments

Comments
 (0)