From f13615ec140aec508501d21a21190782318c360a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 5 Mar 2020 11:35:14 -0800 Subject: 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. --- host/python/uhd/usrp/cal/libtypes.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 host/python/uhd/usrp/cal/libtypes.py (limited to 'host/python') 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 -- cgit v1.2.3