Skip to content

Commit

Permalink
Fix bug #16 - lookup zone numbers might be bigger than an int16.
Browse files Browse the repository at this point in the history
  • Loading branch information
Billy Charlton committed Feb 20, 2015
1 parent 0b7aba8 commit 488f2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/python/openmatrix/File.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def createMapping(self, title, entries, overwrite=False):
self.createGroup(self.root, 'lookup')

# Write the mapping!
mymap = self.createArray(self.root.lookup, title, atom=tables.UInt16Atom(),
mymap = self.createArray(self.root.lookup, title, atom=tables.UInt32Atom(),
shape=(len(entries),) )
mymap[:] = entries

Expand Down

0 comments on commit 488f2b0

Please sign in to comment.