Skip to content

Commit c499af0

Browse files
authored
Merge pull request #639 from BENR0/fix_resolution_bulletpint_html_repr
2 parents f6b652e + d33686e commit c499af0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/deploy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- os: windows-2019
4545
cibw_archs: "AMD64 ARM64"
4646
artifact_name: "win"
47-
- os: macos-12
47+
- os: macos-13
4848
cibw_archs: "x86_64 arm64"
4949
artifact_name: "mac"
5050
- os: "ubuntu-20.04"

pyresample/_formatting_html.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,18 @@ def proj_area_attrs_section(area: 'geom.AreaDefinition') -> str: # noqa F821
190190
sorted(proj_dict.keys())]))
191191
area_units = proj_dict.get("units", "")
192192

193+
resolution_bp_name = "Resolution x/y"
194+
if proj_dict.get("proj") == "geos":
195+
resolution_bp_name += " (SSP)"
196+
193197
attrs_icon = _icon("icon-file-text2")
194198

195199
area_attrs = ("<dl>"
196200
f"<dt>Area name</dt><dd>{area.area_id}</dd>"
197201
f"<dt>Description</dt><dd>{area.description}</dd>"
198202
f"<dt>Projection</dt><dd>{proj_str}</dd>"
199203
f"<dt>Width/Height</dt><dd>{area.width}/{area.height} Pixel</dd>"
200-
f"<dt>Resolution x/y (SSP)</dt><dd>{resolution_str} {area_units}</dd>"
204+
f"<dt>{resolution_bp_name}</dt><dd>{resolution_str} {area_units}</dd>"
201205
f"<dt>Extent (ll_x, ll_y, ur_x, ur_y)</dt>"
202206
f"<dd>{tuple(round(float(x), 4) for x in area.area_extent)}</dd>"
203207
"</dl>"

0 commit comments

Comments
 (0)