Commits

Chris Mutel committed a628d53

Make sure dict keys are ints and not np.uint32

  • Participants
  • Parent commits 0ecbda9
  • Branches stats_arrays

Comments (0)

Files changed (1)

File bw2calc/fallbacks.py

         dict(zip(np.sort(np.unique(array)), itertools.count()))
 
     """
-    return dict(zip(np.sort(np.unique(array)), itertools.count()))
+    return dict(zip(
+        (int(x) for x in np.sort(np.unique(array))),
+        itertools.count()
+    ))