Skip to content

Commit dde5f27

Browse files
authored
Merge pull request #245 from semuconsulting/RC-1.6.6
Rc 1.6.6
2 parents db5a71d + f55d86c commit dde5f27

9 files changed

Lines changed: 57 additions & 54 deletions

File tree

.github/workflows/checkpr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v5
16+
uses: actions/setup-python@v6
1717
with:
1818
python-version: ${{ matrix.python-version }}
1919
- name: Install deploy dependencies

.github/workflows/deploy.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ jobs:
1111
release-build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
15-
- uses: actions/checkout@v4
16-
- name: Set up Python
17-
uses: actions/setup-python@v5
14+
- uses: actions/checkout@v6
15+
- name: Set up Python
16+
uses: actions/setup-python@v6
1817
with:
1918
python-version: 3.13
2019

@@ -24,7 +23,7 @@ jobs:
2423
python -m build
2524
2625
- name: Upload distributions # upload build artifacts
27-
uses: actions/upload-artifact@v4
26+
uses: actions/upload-artifact@v6
2827
with:
2928
name: release-dists
3029
path: dist/
@@ -35,13 +34,12 @@ jobs:
3534
name: Upload release to PyPI
3635
runs-on: ubuntu-latest
3736
environment:
38-
name: pypi
37+
name: pypi
3938
permissions:
4039
id-token: write
4140
steps:
42-
4341
- name: Download all the dists # download build artifacts saved in previous job
44-
uses: actions/download-artifact@v4
42+
uses: actions/download-artifact@v8
4543
with:
4644
name: release-dists
4745
path: dist/

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v5
18+
uses: actions/setup-python@v6
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install deploy dependencies

README.md

Lines changed: 23 additions & 36 deletions
Large diffs are not rendered by default.

RELEASE_NOTES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
# PyGPSClient Release Notes
22

3+
### RELEASE 1.6.6
4+
5+
FIXES:
6+
7+
1. Update nmeahandler to cater for mixed float/null NMEA GGA alt/sep data - Fixes #244.
8+
9+
ENHANCEMENTS:
10+
11+
1. Minor internal updates to NTRIP SPARTN handling - no longer requires a 'dummy' key for unencrypted Point Perfect Flex SPARTN NTRIP services. To decode SPARTN messages in the console, set `"spartndecode_b": 1` in your json configuration file.
12+
313
### RELEASE 1.6.5
414

515
FIXES:
16+
617
1. Fix custom map import spurious validation error.
718

819
ENHANCEMENTS:

src/pygpsclient/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
:license: BSD 3-Clause
99
"""
1010

11-
__version__ = "1.6.5"
11+
__version__ = "1.6.6"

src/pygpsclient/nmea_handler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,14 @@ def _process_GGA(self, data: NMEAMessage):
160160
:param pynmeagps.NMEAMessage data: parsed GGA sentence
161161
"""
162162

163+
alt = data.alt if isinstance(data.alt, (float, int)) else 0
164+
sep = data.sep if isinstance(data.sep, (float, int)) else 0
163165
self.__app.gnss_status.utc = data.time # datetime.time
164166
self.__app.gnss_status.sip = data.numSV
165167
self.__app.gnss_status.lat = data.lat
166168
self.__app.gnss_status.lon = data.lon
167-
self.__app.gnss_status.alt = data.alt
168-
self.__app.gnss_status.hae = data.sep + data.alt
169+
self.__app.gnss_status.alt = alt
170+
self.__app.gnss_status.hae = sep + alt
169171
self.__app.gnss_status.hdop = data.HDOP
170172
self.__app.gnss_status.fix = fix2desc("GGA", data.quality)
171173
self.__app.gnss_status.diff_corr = 0 if data.diffAge == "" else 1

src/pygpsclient/ntrip_client_dialog.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,6 @@ def _get_settings(self):
559559
self._settings["refsep"] = cfg.get("ntripclientrefsep_f")
560560
self._settings["spartndecode"] = cfg.get("spartndecode_b")
561561
self._settings["spartnkey"] = cfg.get("spartnkey_s")
562-
if self._settings["spartnkey"] == "":
563-
self._settings["spartndecode"] = 0
564562
# if basedate is provided in config file, it must be an integer gnssTimetag
565563
self._settings["spartnbasedate"] = cfg.get("spartnbasedate_n")
566564

@@ -613,6 +611,11 @@ def _set_settings(self):
613611
self._settings["reflon"] = float(self._ntrip_gga_lon.get())
614612
self._settings["refalt"] = float(self._ntrip_gga_alt.get())
615613
self._settings["refsep"] = float(self._ntrip_gga_sep.get())
614+
self._settings["spartndecode"] = self.__app.configuration.get("spartndecode_b")
615+
self._settings["spartnkey"] = self.__app.configuration.get("spartnkey_s")
616+
self._settings["spartnbasedate"] = self.__app.configuration.get(
617+
"spartnbasedate_n"
618+
)
616619

617620
def update_sourcetable(self, stable: list):
618621
"""
@@ -655,7 +658,8 @@ def _connect(self):
655658
reflon=self._settings["reflon"],
656659
refalt=self._settings["refalt"],
657660
refsep=self._settings["refsep"],
658-
spartndecode=self._settings["spartndecode"],
661+
# NTRIP SPARTN is unencrypted so key not needed
662+
spartndecode=1, # self._settings["spartndecode"],
659663
spartnkey=self._settings["spartnkey"],
660664
spartnbasedate=self._settings["spartnbasedate"],
661665
output=self.__app.ntrip_inqueue,

src/pygpsclient/recorder_dialog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ def _on_import(self):
513513
self._importdesc.set(self._get_preset_desc())
514514
self._lbl_activity.grid_forget()
515515
self._ent_import.grid(column=0, row=2, columnspan=8, padx=3, sticky=EW)
516+
self._ent_import.focus_set()
516517
self._save_to_preset = True
517518
self.update()
518519

0 commit comments

Comments
 (0)