From 219a9023ff789aa735b9a95c78e942e256a0424a Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 26 Mar 2019 10:39:47 -0500 Subject: update plotting scripts to handle case when there is no fit --- utils/plot | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/plot') diff --git a/utils/plot b/utils/plot index 8fd2fae..6aa55fa 100755 --- a/utils/plot +++ b/utils/plot @@ -95,6 +95,10 @@ if __name__ == '__main__': if 'ev' not in event: continue + if 'fit' not in event['ev'][0]: + # if nhit < 100 we don't fit the event + continue + if id not in event['ev'][0]['fit']: continue -- cgit