From 488f2b0a3d9bdbec3203e806ddea21a20e7579f7 Mon Sep 17 00:00:00 2001 From: Billy Charlton Date: Fri, 20 Feb 2015 09:50:28 -0800 Subject: [PATCH] Fix bug #16 - lookup zone numbers might be bigger than an int16. --- api/python/openmatrix/File.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/python/openmatrix/File.py b/api/python/openmatrix/File.py index 3682463..512af64 100644 --- a/api/python/openmatrix/File.py +++ b/api/python/openmatrix/File.py @@ -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