Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump supported Python versions and correct lat2SW doctest #154

Merged
merged 2 commits into from
May 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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