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-fit-results | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/plot-fit-results') diff --git a/utils/plot-fit-results b/utils/plot-fit-results index 7a9708e..e1f7987 100755 --- a/utils/plot-fit-results +++ b/utils/plot-fit-results @@ -103,6 +103,10 @@ if __name__ == '__main__': a[i]['id'] = id + 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']: a[i] = np.ma.masked continue -- cgit