aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-04-13 15:50:01 -0500
committertlatorre <tlatorre@uchicago.edu>2020-04-13 15:50:01 -0500
commit33e9b624ef7eed425dd8c240dbba458791d9cdd7 (patch)
tree159033af7b3db806eb891aa824fa0e5f9ccc0ce7
parentbeec156aec67518c121ec2710a92018c738cfd0f (diff)
downloadsddm-33e9b624ef7eed425dd8c240dbba458791d9cdd7.tar.gz
sddm-33e9b624ef7eed425dd8c240dbba458791d9cdd7.tar.bz2
sddm-33e9b624ef7eed425dd8c240dbba458791d9cdd7.zip
update plot script to be able to handle files with multi-particle fits
-rwxr-xr-xutils/plot3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/plot b/utils/plot
index 2c0857b..548452b 100755
--- a/utils/plot
+++ b/utils/plot
@@ -115,6 +115,9 @@ if __name__ == '__main__':
# merge data and fits on run and gtid
data = data.merge(fits,left_on=['run','gtid'],right_on=['fit_run','fit_gtid'])
+ # For this script, we only want the single particle fit results
+ data = data[(data.fit_id2 == 0) & (data.fit_id3 == 0)]
+
# Select only the best fit for a given run, gtid, and particle
# combo
data = data.sort_values('fit_fmin').groupby(['run','gtid','fit_id1','fit_id2','fit_id3'],as_index=False).nth(0).reset_index(level=0,drop=True)