Commits

Anonymous committed 778d557

Makes cell mappings work how help and intuition says they should.

Comments (0)

Files changed (1)

adu/excelconvert.py

             # print >> sys.stderr, full_row_text
             valuedict = dict(zip(headernames, full_row_text))
             # print >> sys.stderr, valuedict
-            renamed = dict((k, valuedict.get(v)) for k, v in cellmap.items())
+            renamed = {}
+            for cellname, aduname in cellmap.items():
+                renamed[aduname] = valuedict.get(cellname)
             # print >> sys.stderr, renamed
             strings_to_ints(renamed)
             # print >> sys.stderr, renamed