Skip to content

Commit

Permalink
Merge pull request #90 from businessglitch/patch-1
Browse files Browse the repository at this point in the history
Code crashes on mapsize[0] * mapsize[1]
  • Loading branch information
sevamoo authored Sep 19, 2019
2 parents 1494279 + f4e5518 commit 229c2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sompy/codebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, mapsize, lattice='rect'):
"Mapsize is expected to be a 2 element list or a single int")

self.mapsize = _size
self.nnodes = mapsize[0]*mapsize[1]
self.nnodes = self.mapsize[0]*self.mapsize[1]
self.matrix = np.asarray(self.mapsize)
self.initialized = False

Expand Down

0 comments on commit 229c2c7

Please sign in to comment.