Skip to content

Commit

Permalink
Merge pull request #130 from renanxcortes/master
Browse files Browse the repository at this point in the history
swapping ncols <-> nrows in the build_lattice_shapefile function
  • Loading branch information
sjsrey authored Dec 27, 2018
2 parents 7b27a40 + 2436b58 commit e2609a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libpysal/weights/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def build_lattice_shapefile(nrows, ncols, outFileName):
d.header = [ 'ID' ]
d.field_spec = [ ('N', 8, 0) ]
c = 0
for i in range(nrows):
for j in range(ncols):
for i in range(ncols):
for j in range(nrows):
ll = i, j
ul = i, j + 1
ur = i + 1, j + 1
Expand Down

0 comments on commit e2609a9

Please sign in to comment.