diff --git a/scripts/checkPulseData.py b/scripts/checkPulseData.py index 8033762..dec459c 100644 --- a/scripts/checkPulseData.py +++ b/scripts/checkPulseData.py @@ -211,13 +211,13 @@ # Select the instances where pulse data are monotonic monotonics = data_frame[data_frame['MPVs'].apply(is_monotonic)] - if not os.path.isfile('monotonics.pkl'): + if not os.path.isfile('monotonics_{DET}.pkl'.format(DET=detector)): import pickle - pickle.dump(monotonics, open('monotonics.pkl', 'wb')) + pickle.dump(monotonics, open('monotonics_{DET}.pkl'.format(DET=detector), 'wb')) - if not os.path.isfile('all_data.pkl'): + if not os.path.isfile('all_data_{DET}.pkl'.format(DET=detector)): import pickle - pickle.dump(data_frame, open('all_data.pkl', 'wb')) + pickle.dump(data_frame, open('all_data_{DET}.pkl'.format(DET=detector), 'wb')) # Combine masks with the '&' operator # (intersection in numpy), e.g.: