From b3c038f5767a66434727801d9fd2dc12781baafc Mon Sep 17 00:00:00 2001
From: jacques Grelet <jacques.grelet@gmail.com>
Date: Tue, 12 Mar 2019 12:49:02 +0000
Subject: [PATCH] add print theKey in disp()

---
 roscop/roscop.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/roscop/roscop.py b/roscop/roscop.py
index 58ecff2..24d2975 100644
--- a/roscop/roscop.py
+++ b/roscop/roscop.py
@@ -23,6 +23,7 @@ class Roscop:
         return 'Class Roscop, file: %s, size = %d' % (self.file, len(self.hash))
 
     def disp(self, theKey):
+        print("%s :" % theKey)
         print(self.hash[theKey])
 
     # read code roscop file
@@ -42,9 +43,9 @@ class Roscop:
 # for testing in standalone context
 # ---------------------------------
 if __name__ == "__main__":
-    #from roscop import Roscop
+    # from roscop import Roscop
     r = Roscop("code_roscop.csv")
     r.read()
     print(r)
-    r.disp('TEMP')
-    r.disp('PSAL')
+    # r.disp('TEMP')
+    r.disp('BATH')
-- 
GitLab