public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Federico Pellegrin <fede@evolware.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-phyghtmap] rawhide: Try to further fix package: spurious lines on results (rhbz#2469045)
Date: Sat, 28 Nov 2026 11:16:07 GMT [thread overview]
Message-ID: <179586456772.1.6864550762177554006.rpms-python-phyghtmap-76dd1fb1aee2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-phyghtmap
Branch : rawhide
Commit : 76dd1fb1aee2e3a1336ce8f3441d9f194e37d011
Author : Federico Pellegrin <fede@evolware.org>
Date : 2026-11-28T12:15:55+01:00
Stats : +42/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-phyghtmap/c/76dd1fb1aee2e3a1336ce8f3441d9f194e37d011?branch=rawhide
Log:
Try to further fix package: spurious lines on results (rhbz#2469045)
---
diff --git a/0006-Spurious_lines_countour_py.patch b/0006-Spurious_lines_countour_py.patch
new file mode 100644
index 0000000..b2be8e4
--- /dev/null
+++ b/0006-Spurious_lines_countour_py.patch
@@ -0,0 +1,37 @@
+diff -ruN phyghtmap-2.23-e/phyghtmap/hgt.py phyghtmap-2.23-f/phyghtmap/hgt.py
+--- phyghtmap-2.23-e/phyghtmap/hgt.py 2026-11-27 12:06:01.587097260 +0100
++++ phyghtmap-2.23-f/phyghtmap/hgt.py 2026-11-28 12:12:04.417035103 +0100
+@@ -429,6 +429,9 @@
+ """
+ if Version(mplversion) >= Version("2.0.0"):
+ rawPaths = self.Cntr.create_contour(elevation)
++ if isinstance(rawPaths, tuple):
++ # new contourpy returns (lines, codes)!
++ rawPaths = rawPaths[0]
+ elif Version(mplversion) >= Version("1.0.0"):
+ # matplotlib 1.0.0 and above returns vertices and segments, but we only need vertices
+ rawPaths = halfOf(self.Cntr.trace(elevation, **kwargs))
+diff -ruN phyghtmap-2.23-e/phyghtmap/pbfUtil.py phyghtmap-2.23-f/phyghtmap/pbfUtil.py
+--- phyghtmap-2.23-e/phyghtmap/pbfUtil.py 2026-11-27 12:06:01.582097102 +0100
++++ phyghtmap-2.23-f/phyghtmap/pbfUtil.py 2026-11-28 12:09:09.383705912 +0100
+@@ -378,18 +378,11 @@
+
+ def _makePoints(path, elevation, IDCounter):
+ ids, nodes = [], []
+- all_paths = []
+- for single_path in path:
+- try:
+- for lon, lat in single_path:
+- all_paths.append([lon, lat])
+- except:
+- pass
+- for lon, lat in all_paths:
++ for lon, lat in path:
+ IDCounter.curId += 1
+ nodes.append((int(lon*NANO), int(lat*NANO)))
+ ids.append(IDCounter.curId-1)
+- if len(ids)>0 and numpy.all(all_paths[0]==all_paths[-1]): # close contour
++ if len(ids)>0 and numpy.all(path[0]==path[-1]): # close contour
+ del nodes[-1] # remove last node
+ del ids[-1]
+ ids.append(ids[0])
diff --git a/python-phyghtmap.spec b/python-phyghtmap.spec
index 00d5074..9f33f7f 100644
--- a/python-phyghtmap.spec
+++ b/python-phyghtmap.spec
@@ -17,6 +17,8 @@ Patch2: 0003-Array_all_array_equal.patch
Patch3: 0004-New_gdal_swapped_coords.patch
# Fix lat/long swapped in PDB files
Patch4: 0005-Lat_lon_swapped.patch
+# Fix spurious lines due to countourpy returning tuples
+Patch5: 0006-Spurious_lines_countour_py.patch
BuildArch: noarch
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
@@ -76,6 +78,9 @@ install -Dpm 644 docs/%{modname}.1 %{buildroot}%{_mandir}/man1/%{modname}.1
%{_mandir}/man1/%{modname}.1*
%changelog
+* Sat Nov 28 2026 Federico Pellegrin <fede@evolware.org> - 2.23-25
+- Try to further fix package: spurious lines on results (rhbz#2469045)
+
* Fri Nov 27 2026 Federico Pellegrin <fede@evolware.org> - 2.23-24
- Try to further fix package: swapped coordinates in PDB (rhbz#2469045)
next reply other threads:[~2026-11-28 11:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 11:16 Federico Pellegrin [this message]
2026-11-28 11:16 [rpms/python-phyghtmap] rawhide: Try to further fix package: spurious lines on results (rhbz#2469045) Federico Pellegrin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179586456772.1.6864550762177554006.rpms-python-phyghtmap-76dd1fb1aee2@fedoraproject.org \
--to=fede@evolware.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox