aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-12-25 07:32:09 -0600
committertlatorre <tlatorre@uchicago.edu>2020-12-25 07:32:09 -0600
commitec98b0f8e39384fce04f20c33045766ace115718 (patch)
treedd32a91b4dae7e843a9521d55bb319d229475fd2
parentd9755b85e46d75af024bf731653aac3639339b3a (diff)
downloadsddm-ec98b0f8e39384fce04f20c33045766ace115718.tar.gz
sddm-ec98b0f8e39384fce04f20c33045766ace115718.tar.bz2
sddm-ec98b0f8e39384fce04f20c33045766ace115718.zip
merge left
-rw-r--r--utils/sddm/renormalize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sddm/renormalize.py b/utils/sddm/renormalize.py
index b501a26..8d06263 100644
--- a/utils/sddm/renormalize.py
+++ b/utils/sddm/renormalize.py
@@ -142,6 +142,6 @@ def renormalize_data(data, mcpl):
MC dataframe so that the "flux_weight" column is available to renormalize
the tau neutrino data.
"""
- data = pd.merge(data,mcpl[['run','unique_id','flux_weight']],on=['run','unique_id'])
+ data = pd.merge(data,mcpl[['run','unique_id','flux_weight']],on=['run','unique_id'],how='left')
data['flux_weight'] = data['flux_weight'].fillna(1.0)
return data