From 6110259d97f1729e2392ff5b9032f50c0c9a1d41 Mon Sep 17 00:00:00 2001
From: Bert Palm <bert.palm@ufz.de>
Date: Mon, 6 Jul 2020 12:11:29 +0200
Subject: [PATCH] empty series fix

---
 saqc/funcs/harm_functions.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/saqc/funcs/harm_functions.py b/saqc/funcs/harm_functions.py
index 360f9ff0a..32f0f696b 100644
--- a/saqc/funcs/harm_functions.py
+++ b/saqc/funcs/harm_functions.py
@@ -74,6 +74,9 @@ def harmWrapper(heap={}):
         # now we can manipulate it without loosing information gathered before harmonization
         dat_col, flagger_merged_clean, _ = _outsortCrap(dat_col, field, flagger_merged, drop_flags=drop_flags)
 
+        if dat_col.empty:
+            return data, flagger
+
         # interpolation! (yeah)
         dat_col, chunk_bounds = _interpolateGrid(
             dat_col,
-- 
GitLab