From 29bb4dc93c718801b55d2afa771d3aa4bec20082 Mon Sep 17 00:00:00 2001 From: James Gaboardi Date: Thu, 23 May 2019 19:23:41 -0400 Subject: [PATCH 1/2] bump supported Python versions --- .travis.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index b48e72341..e39af6233 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 From 90a13d3d1c2e9d2b0415c6847e06e0913871a257 Mon Sep 17 00:00:00 2001 From: James Gaboardi Date: Thu, 23 May 2019 21:45:16 -0400 Subject: [PATCH 2/2] adjusting doctest in libpysal/weights/util.lat2SW --- libpysal/weights/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpysal/weights/util.py b/libpysal/weights/util.py index 7480d4cbb..0d1de71da 100644 --- a/libpysal/weights/util.py +++ b/libpysal/weights/util.py @@ -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