Skip to content

Commit 572540d

Browse files
authored
Merge pull request #30274 from QuLogic/fix-preload
ci: Fix image preload with multiple conflicts
2 parents 4d47644 + aff20cf commit 572540d

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy