Skip to content

Commit aff20cf

Browse files
committed
ci: Fix image preload with multiple conflicts
1 parent 4d47644 commit aff20cf

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ jobs:
107107
lib/matplotlib/tests/baseline_images \
108108
lib/mpl_toolkits/*/tests/baseline_images)
109109
if [ -n "${conflicts}" ]; then
110-
git checkout --ours -- "${conflicts}"
111-
git add -- "${conflicts}"
110+
git checkout --ours -- ${conflicts}
111+
git add -- ${conflicts}
112112
fi
113113
# If committing fails, there were conflicts other than the baseline images,
114114
# which should not be allowed to happen, and should fail the build.

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ stages:
7979
lib/matplotlib/tests/baseline_images \
8080
lib/mpl_toolkits/*/tests/baseline_images)
8181
if [ -n "${conflicts}" ]; then
82-
git checkout --ours -- "${conflicts}"
83-
git add -- "${conflicts}"
82+
git checkout --ours -- ${conflicts}
83+
git add -- ${conflicts}
8484
fi
8585
# If committing fails, there were conflicts other than the baseline images,
8686
# which should not be allowed to happen, and should fail the build.

lib/matplotlib/mlab.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,6 @@ def _stride_windows(x, n, noverlap=0):
219219
raise ValueError(f'n ({n}) and noverlap ({noverlap}) must be positive integers '
220220
f'with n < noverlap and n <= x.size ({x.size})')
221221

222-
if n == 1 and noverlap == 0:
223-
return x[np.newaxis]
224-
225222
step = n - noverlap
226223
shape = (n, (x.shape[-1]-noverlap)//step)
227224
strides = (x.strides[0], step*x.strides[0])

0 commit comments

Comments
 (0)