From 1d96ec18d866ec84303de40be3c4c9b14c6b2bdc Mon Sep 17 00:00:00 2001
From: Sven Augustin <sven.augustin@psi.ch>
Date: Wed, 4 Nov 2020 15:31:34 +0100
Subject: [PATCH] refactor: cleaned up imports; renamed run -> run_command

---
 commands.py | 5 ++---
 sani.py     | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/commands.py b/commands.py
index 0911ee7..4f1a1c3 100644
--- a/commands.py
+++ b/commands.py
@@ -3,15 +3,14 @@ import numpy as np
 import pandas as pd
 import epics
 
-from utils.df import drop_col, compare_dfs, count_true
+from utils.df import drop_col, compare_dfs
 from utils.epics import DataGetter, DataPutter
 from utils.execute import parallel, serial
 from utils.fileio import load_config, load_csv, store_csv
 from utils.printing import print_good, print_bad, print_outcome, print_ignored
-from utils.seq import is_empty
 
 
-def run(clargs):
+def run_command(clargs):
     commands = {
         "check": run_check,
         "compare": run_compare,
diff --git a/sani.py b/sani.py
index 448ef83..ce34395 100755
--- a/sani.py
+++ b/sani.py
@@ -3,8 +3,8 @@
 
 def main():
     clargs = handle_clargs()
-    from commands import run
-    run(clargs)
+    from commands import run_command
+    run_command(clargs)
 
 
 def handle_clargs():
-- 
GitLab