aboutsummaryrefslogtreecommitdiffstats
path: root/host/python
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-03-05 11:35:14 -0800
committerAaron Rossetto <aaron.rossetto@ni.com>2020-03-26 07:46:03 -0500
commitf13615ec140aec508501d21a21190782318c360a (patch)
tree5a906ffd6bfd4c319df539c0d31449bd1bd80014 /host/python
parent8055879242b43500c49e8ea8d4035687d13f9fae (diff)
downloaduhd-f13615ec140aec508501d21a21190782318c360a.tar.gz
uhd-f13615ec140aec508501d21a21190782318c360a.tar.bz2
uhd-f13615ec140aec508501d21a21190782318c360a.zip
uhd: cal: Add database class
This class contains methods to store and retrieve data from the local calibration database. Note that in this case, the "database" is just a bunch of files on the local filesystem.
Diffstat (limited to 'host/python')
-rw-r--r--host/python/uhd/usrp/cal/libtypes.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/host/python/uhd/usrp/cal/libtypes.py b/host/python/uhd/usrp/cal/libtypes.py
new file mode 100644
index 000000000..754028c24
--- /dev/null
+++ b/host/python/uhd/usrp/cal/libtypes.py
@@ -0,0 +1,19 @@
+#
+# Copyright 2020 Ettus Research, a National Instruments Brand
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+"""
+Import cal types into Python
+"""
+
+from ... import libpyuhd as lib
+
+# Disable PyLint because we want to make it look like the following classes are
+# defined in Python, but they're just renames of lib types. They therefore
+# follow name conventions for Python classes, not for global constants.
+# pylint: disable=invalid-name
+# database is a class, but we treat it like a namespace, i.e., a submodule
+database = lib.cal.database
+Source = lib.cal.source
+# pylint: enable=invalid-name