Skip to content

Commit 0591a4a

Browse files
committed
update Sphinx config
1 parent 7f71e60 commit 0591a4a

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#
1313
import os
1414
import sys
15-
from pyubxutils import version as VERSION
15+
1616

1717
# get path to site-packages (source) folder within venv
1818
pypath = (
@@ -22,6 +22,8 @@
2222
print(f"\n\033[1mUsing absolute path:\033[0m \033[95m{pypath}\033[0m\n")
2323
sys.path.insert(0, os.path.abspath(pypath))
2424

25+
from pyubxutils import version as VERSION
26+
2527
# -- Project information -----------------------------------------------------
2628

2729
project = "pyubxutils"

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
contain the root `toctree` directive.
55
66
Welcome to pyubxutils's documentation!
7-
==================================
7+
======================================
88

99
.. toctree::
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13-
13+
modules.rst
1414

1515
Indices and tables
1616
==================

src/pyubxutils/ubxsimulator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def _msgfactory(
264264
msgid = msg["msgId"]
265265
rate = msg.get("rate", 1)
266266
if not loops % rate:
267-
attrs = {**time_attrs, **global_attrs, **msg["attrs"]}
267+
attrs = {**time_attrs, **global_attrs, **msg.get("attrs", {})}
268268
ubx = UBXMessage(msgcls, msgid, GET, **attrs)
269269
outq.put(ubx.serialize())
270270

@@ -275,7 +275,7 @@ def _msgfactory(
275275
rate = msg.get("rate", 1)
276276
if not loops % rate:
277277
# pynmeagps automatically defaults time to now()
278-
attrs = {**global_attrs, **msg["attrs"]}
278+
attrs = {**global_attrs, **msg.get("attrs", {})}
279279
nme = NMEAMessage(talker, msgid, GET, **attrs)
280280
outq.put(nme.serialize())
281281

0 commit comments

Comments
 (0)