From e6243d4d38bccf05d1b434ed1a1f78e91938b102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Vester=20Th=C3=B8gersen?= <34004462+rasmusthog@users.noreply.github.com> Date: Sun, 23 Oct 2022 18:57:42 +0000 Subject: [PATCH] Remove old version of swap_values --- nafuma/auxillary.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/nafuma/auxillary.py b/nafuma/auxillary.py index 8e428b5..4931a79 100644 --- a/nafuma/auxillary.py +++ b/nafuma/auxillary.py @@ -50,16 +50,6 @@ def load_options(path): -def swap_values(dict, key1, key2): - - key1_val = dict[key1] - dict[key1] = dict[key2] - dict[key2] = key1_val - - return dict - - - def ceil(a, roundto=1): fac = 1/roundto @@ -195,4 +185,4 @@ def find_neighbours(value, df, colname, start=0, end=-1): def isnan(value): - return value!=value \ No newline at end of file + return value!=value