Commits

Daniel Benamy  committed 778d557

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

  • Participants
  • Parent commits 3cbed0c

Comments (0)

Files changed (1)

File 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