Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40f2221

Browse filesBrowse files
authored
Merge pull request plotly#7396 from plotly/update-map-baselines
Update map baselines and fix failing font download
2 parents a9cebef + e67e61a commit 40f2221
Copy full SHA for 40f2221

24 files changed

+9
-2
lines changed

‎.circleci/download_google_fonts.py

Copy file name to clipboardExpand all lines: .circleci/download_google_fonts.py
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22

33
dirOut = '.circleci/fonts/truetype/googleFonts/'
44

5-
def download(repo, family, types) :
5+
def download(repo, family, types):
66
for t in types :
77
name = family + t + '.ttf'
88
url = repo + name + '?raw=true'
99
print(url)
1010
req = requests.get(url, allow_redirects=True)
11+
if req.status_code != 200:
12+
raise RuntimeError(f"""
13+
Download failed.
14+
Status code: {req.status_code}
15+
Message: {req.reason}
16+
"""
17+
)
1118
open(dirOut + name, 'wb').write(req.content)
1219

1320
download(
@@ -82,7 +89,7 @@ def download(repo, family, types) :
8289
)
8390

8491
download(
85-
'https://github.com/expo/google-fonts/blob/master/font-packages/gravitas-one/',
92+
'https://github.com/expo/google-fonts/blob/main/font-packages/gravitas-one/400Regular/',
8693
'GravitasOne',
8794
[
8895
'_400Regular'

‎test/image/baselines/map_0.png

Copy file name to clipboard
-5.42 KB
Loading

‎test/image/baselines/map_angles.png

Copy file name to clipboard
1.52 KB
Loading
0 Bytes
Loading

‎test/image/baselines/map_bubbles.png

Copy file name to clipboard
-4.99 KB
Loading
-4.32 KB
Loading
-4.81 KB
Loading
-8.17 KB
Loading
-366 Bytes
Loading
-3.08 KB
Loading
-3.91 KB
Loading
Loading

‎test/image/baselines/map_density0.png

Copy file name to clipboard
-5.27 KB
Loading

‎test/image/baselines/map_fill.png

Copy file name to clipboard
5 Bytes
Loading
Loading
Loading
Loading
Loading
Loading
-2.73 KB
Loading

‎test/image/baselines/map_layers.png

Copy file name to clipboard
265 Bytes
Loading
13 Bytes
Loading
-10.8 KB
Loading
-6.28 KB
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.