From 1858c716ac5303cbe3e435d86405fe4f5e1a69b9 Mon Sep 17 00:00:00 2001
From: leufen1 <l.leufen@fz-juelich.de>
Date: Thu, 8 Jul 2021 16:41:04 +0200
Subject: [PATCH] removed unused helper method

---
 mlair/helpers/helpers.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/mlair/helpers/helpers.py b/mlair/helpers/helpers.py
index 499f8258..5ddaa3ee 100644
--- a/mlair/helpers/helpers.py
+++ b/mlair/helpers/helpers.py
@@ -179,13 +179,3 @@ def convert2xrda(arr: Union[xr.DataArray, xr.Dataset, np.ndarray, int, float],
             kwargs.update({'dims': dims, 'coords': coords})
 
         return xr.DataArray(arr, **kwargs)
-
-
-def convert_size(size_bytes):
-    if size_bytes == 0:
-        return "0B"
-    size_name = ("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
-    i = int(math.floor(math.log(size_bytes, 1024)))
-    p = math.pow(1024, i)
-    s = round(size_bytes / p, 2)
-    return "%s %s" % (s, size_name[i])
-- 
GitLab