From c494b0d647459edaa2e2dd44c65b782766439587 Mon Sep 17 00:00:00 2001 From: Laurent Mercadier <laurent.mercadier@xfel.eu> Date: Tue, 7 Apr 2020 08:48:19 +0200 Subject: [PATCH] Fix typo in calibrateTIM() --- xgm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xgm.py b/xgm.py index 7038690..f9d341e 100644 --- a/xgm.py +++ b/xgm.py @@ -559,8 +559,8 @@ def calibrateTIM(data, rollingWindow=200, mcp=1, plot=False, use_apd=True, intst fig = plt.figure(figsize=(8,5)) ax = plt.subplot(211) ax.set_title('E[uJ] = {:2e} x TIM (MCP{})'.format(F, mcp)) - ax.plot(data['SCS_photonflux'], label='SCS XGM slow (all SASE)', color='C0') - slow_avg_sase3 = data['SCS_photonflux']*(data['npulses_sase1'] + ax.plot(data['SCS_photonFlux'], label='SCS XGM slow (all SASE)', color='C0') + slow_avg_sase3 = data['SCS_photonFlux']*(data['npulses_sase1'] +data['npulses_sase3'])*sa3contrib/data['npulses_sase3'] ax.plot(slow_avg_sase3, label='SCS XGM slow (SASE3 only)', color='C1') ax.plot(avgFast*F, label='Calibrated TIM rolling avg', color='C2') -- GitLab