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

test

parent 920ae61c
No related branches found
No related tags found
No related merge requests found
......@@ -30,16 +30,19 @@ class Roscop:
return 'Class Roscop, file: %s, size = %d' % (self.file, len(self.hash))
def disp(self, theKey):
d = self.hash[theKey]
for attr, value in d.__dict__.items():
print(attr, value)
# (a, b) = self.hash.items()
# print(a, b)
print(self.hash.items())
# for attr, value in d.__dict__.items():
# print(attr, value)
# print(d.__dict__)
# read code roscop file
def read(self):
d = db()
with open(self.file, 'rt') as f:
reader = csv.DictReader(f, delimiter=';')
#print("%s" % (reader.fieldnames))
# print("%s" % (reader.fieldnames))
for key in reader.fieldnames:
d.key = key
......@@ -48,7 +51,7 @@ class Roscop:
for k in reader.fieldnames:
d.k = row[k]
self.hash[theKey] = d
#print("Key : %s" % theKey)
# print("Key : %s" % theKey)
return
......
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