aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2015-10-29 11:30:09 +0100
committerVolker Hoffmann <volker@cheleb.net>2015-10-29 11:30:09 +0100
commit893865c66fb14c33a92475b8b91c70a888576272 (patch)
treebc9d47408a948990cc1d9246de5358bb852af650
parentdae301255edf76ca3e406e728d5839b61f4ef014 (diff)
fix: make sure we do not accidentally write into dfo_t0
-rw-r--r--Helpers/formation_helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Helpers/formation_helpers.py b/Helpers/formation_helpers.py
index 7d7192a..cfeb63a 100644
--- a/Helpers/formation_helpers.py
+++ b/Helpers/formation_helpers.py
@@ -181,7 +181,7 @@ def compute_wmf(dfo, dfo_t0, dfc, showstep=False):
dfc_now[dfc_now.ifname == int(dfo_loc.ifname)])
dfo_sources = \
dfo_t0[(dfo_t0.pid.isin(sources)) & \
- (dfo_t0.ifname == int(dfo_loc.ifname))]
+ (dfo_t0.ifname == int(dfo_loc.ifname))].copy()
# Compute WMF (Raymond+ 2004, Ronco+ 2014)
dfo_sources.loc[:,'wmf_01'] = \