Skip to content

Commit

Permalink
Merge pull request #154 from jGaboardi/python_v_bump
Browse files Browse the repository at this point in the history
bump supported Python versions and correct lat2SW doctest
  • Loading branch information
sjsrey authored May 25, 2019
2 parents aa7882e + 90a13d3 commit 2dbd2ba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
21 changes: 14 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@ sudo: false
branches:
only:
- master
python:
- 3.5
- 3.6

env:
- PYSAL_PLUS=false
- PYSAL_PLUS=true
matrix:
include:
- python: 3.6
env: PYSAL_PLUS=false
- python: 3.6
env: PYSAL_PLUS=true
- python: 3.7
dist: xenial
sudo: true
env: PYSAL_PLUS=false
- python: 3.7
dist: xenial
sudo: true
env: PYSAL_PLUS=true

before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
Expand Down
4 changes: 2 additions & 2 deletions libpysal/weights/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,8 +1154,8 @@ def lat2SW(nrows=3, ncols=5, criterion="rook", row_st=False):
>>> from libpysal.weights import lat2W
>>> w9 = lat2SW(3,3)
>>> w9[0,1]
1
>>> w9[3,6]
array(1, dtype=int8)
>>> w9[3,6].tolist()
1
>>> w9r = lat2SW(3,3, row_st=True)
>>> w9r[3,6] == 1./3
Expand Down

0 comments on commit 2dbd2ba

Please sign in to comment.