Skip to content

Commit

Permalink
Set a default summary for the number of pulses
Browse files Browse the repository at this point in the history
This was a silly oversight, if the summary isn't specified then the variable
will be displayed in the table in the '<type>: <shape>' format.
  • Loading branch information
JamesWrigley committed Aug 30, 2023
1 parent c385fc1 commit d4bf0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion damnit/base_context_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ def xgm_intensity(run):
xgm = run[f"{xgm_name}:output", 'data.intensityTD'].xarray()
return xgm[:, np.where(xgm[0] > 1)[0]].mean(axis=1)

@Variable(title="Pulses")
@Variable(title="Pulses", summary="mean")
def pulses(run):
return run[xgm_name, 'pulseEnergy.numberOfBunchesActual'].xarray()

0 comments on commit d4bf0f5

Please sign in to comment.