aboutsummaryrefslogtreecommitdiffstats
path: root/host/python
diff options
context:
space:
mode:
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