Skip to content

Commit 72ea3f4

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 99af82b + 34f07ed commit 72ea3f4

File tree

8 files changed

+43
-11
lines changed

8 files changed

+43
-11
lines changed

.github/workflows/unittests.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
jobs:
2020
unittests:
2121
env:
22-
RUN_TEST: pytest -v splot --cov splot --cov-config .coveragerc --cov-report xml --color yes --cov-append --cov-report term-missing
22+
RUN_TEST: pytest splot -v -r a --cov splot --cov-config .coveragerc --cov-report xml --color yes --cov-append --cov-report term-missing
2323
name: ${{ matrix.os }}, ${{ matrix.environment-file }}
2424
runs-on: ${{ matrix.os }}
2525
timeout-minutes: 30
@@ -31,11 +31,13 @@ jobs:
3131
- ci/39.yaml
3232
- ci/310.yaml
3333
- ci/310-DEV.yaml
34+
- ci/310-DEV_shapely_dev.yaml
3435
include:
3536
- environment-file: ci/310.yaml
3637
os: macos-latest
3738
- environment-file: ci/310.yaml
3839
os: windows-latest
40+
fail-fast: false
3941

4042
steps:
4143
- name: checkout repo
@@ -45,15 +47,16 @@ jobs:
4547
uses: mamba-org/provision-with-micromamba@main
4648
with:
4749
environment-file: ${{ matrix.environment-file }}
48-
micromamba-version: "latest"
50+
micromamba-version: 'latest'
51+
channel-priority: 'flexible'
4952

5053
- name: install bleeding edge PySAL submodules (only Ubuntu / Python 3.10)
5154
shell: bash -l {0}
5255
run: |
5356
pip install git+https://github.com/pysal/libpysal.git@master
54-
pip install git+https://github.com/pysal/mapclassify.git@master
57+
pip install git+https://github.com/pysal/mapclassify.git@main
5558
pip install git+https://github.com/pysal/esda.git@master
56-
pip install git+https://github.com/pysal/spreg.git@master
59+
pip install git+https://github.com/pysal/spreg.git@main
5760
pip install git+https://github.com/pysal/giddy.git@master
5861
if: matrix.os == 'ubuntu-latest' && contains(matrix.environment-file, 'DEV')
5962

@@ -71,6 +74,16 @@ jobs:
7174
shell: bash -l {0}
7275
run: cp utils/matplotlibrc .
7376

77+
- name: environment info
78+
shell: bash -l {0}
79+
run: |
80+
micromamba info
81+
micromamba list
82+
83+
- name: spatial versions
84+
shell: bash -l {0}
85+
run: 'python -c "import geopandas; geopandas.show_versions();"'
86+
7487
- name: run tests - bash
7588
shell: bash -l {0}
7689
run: ${{ env.RUN_TEST }}

ci/310-DEV.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
- matplotlib
1515
- numpy
1616
- pip
17-
- seaborn
17+
- seaborn>=0.11.0

ci/310-DEV_shapely_dev.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: test
2+
channels:
3+
- conda-forge
4+
- conda-forge/label/shapely_dev
5+
dependencies:
6+
- python=3.10
7+
# testing
8+
- codecov
9+
- pytest
10+
- pytest-cov
11+
# required
12+
- bokeh
13+
- geopandas>=0.12.0
14+
- ipywidgets
15+
- matplotlib
16+
- numpy
17+
- pip
18+
- seaborn>=0.11.0
19+
- shapely>=2.0b1

ci/310.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ dependencies:
1818
- matplotlib
1919
- numpy
2020
- pip
21-
- seaborn
21+
- seaborn>=0.11.0
2222
- spreg

ci/38.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
- matplotlib
1919
- numpy
2020
- pip
21-
- seaborn
21+
- seaborn>=0.11.0
2222
- spreg

ci/39.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
- matplotlib
1919
- numpy
2020
- pip
21-
- seaborn
21+
- seaborn>=0.11.0
2222
- spreg

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ libpysal
55
mapclassify
66
matplotlib
77
numpy
8-
seaborn
8+
seaborn>=0.11.0
99
spreg

splot/_viz_esda_mpl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def plot_moran_simulation(moran, aspect_equal=True,
351351
# plot distribution
352352
shade = kwargs.pop('shade', True)
353353
color = kwargs.pop('color', splot_colors['moran_base'])
354-
sbn.kdeplot(moran.sim, shade=shade, color=color, ax=ax, **kwargs)
354+
sbn.kdeplot(moran.sim, fill=shade, color=color, ax=ax, **kwargs)
355355

356356
# customize plot
357357
fitline_kwds.setdefault('color', splot_colors['moran_fit'])
@@ -625,7 +625,7 @@ def plot_moran_bv_simulation(moran_bv, ax=None, aspect_equal=True,
625625
# plot distribution
626626
shade = kwargs.pop('shade', True)
627627
color = kwargs.pop('color', splot_colors['moran_base'])
628-
sbn.kdeplot(moran_bv.sim, shade=shade, color=color, ax=ax, **kwargs)
628+
sbn.kdeplot(moran_bv.sim, fill=shade, color=color, ax=ax, **kwargs)
629629

630630
# customize plot
631631
fitline_kwds.setdefault('color', splot_colors['moran_fit'])

0 commit comments

Comments
 (0)