From 7f696a5f24680d2d13ecc6c9c17e1adac78c0228 Mon Sep 17 00:00:00 2001
From: dave <dave@dtu.dk>
Date: Thu, 30 Jun 2016 15:45:59 +0200
Subject: [PATCH] prepost.h2_vs_hs2: ch_name changed to unique_ch_name in
 windIO.ch_df

---
 wetb/prepost/h2_vs_hs2.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wetb/prepost/h2_vs_hs2.py b/wetb/prepost/h2_vs_hs2.py
index 5f69fcac..72996d2f 100644
--- a/wetb/prepost/h2_vs_hs2.py
+++ b/wetb/prepost/h2_vs_hs2.py
@@ -727,7 +727,7 @@ class MappingsH2HS2(object):
             msg = 'HAWC2 sensor type "%s" is missing, are they defined?'
             raise ValueError(msg % sensortype)
         sel.sort_values(['radius'], inplace=True)
-        tors_e_channels = sel.ch_name.tolist()
+        tors_e_channels = sel.unique_ch_name.tolist()
 
         # find the current case in the statistics DataFrame
         case = fname.replace('.htc', '')
@@ -737,7 +737,7 @@ class MappingsH2HS2(object):
         # join the stats with the channel descriptions DataFrames, have the
         # same name on the joining column
         df_tors_e.set_index('channel', inplace=True)
-        sel.set_index('ch_name', inplace=True)
+        sel.set_index('unique_ch_name', inplace=True)
 
         # joining happens on the index, and for which the same channel has been
         # used: the unique HAWC2 channel naming scheme
-- 
GitLab