Skip to content
Snippets Groups Projects
Commit b3c038f5 authored by jacques Grelet's avatar jacques Grelet
Browse files

add print theKey in disp()

parent 805ad33c
No related branches found
No related tags found
No related merge requests found
......@@ -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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment