2020-05-18 18:58:17 +00:00
|
|
|
# NanoVNASaver
|
2020-06-25 17:52:30 +00:00
|
|
|
#
|
2020-05-18 18:58:17 +00:00
|
|
|
# A python program to view and export Touchstone data from a NanoVNA
|
2020-06-25 17:52:30 +00:00
|
|
|
# Copyright (C) 2019, 2020 Rune B. Broberg
|
2022-05-24 15:05:59 +00:00
|
|
|
# Copyright (C) 2020ff NanoVNA-Saver Authors
|
2019-09-01 21:13:21 +00:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2019-09-22 11:42:05 +00:00
|
|
|
import logging
|
2021-07-01 18:52:54 +00:00
|
|
|
|
2021-07-06 15:01:20 +00:00
|
|
|
from NanoVNASaver.Charts.Frequency import FrequencyChart
|
2019-11-17 20:45:08 +00:00
|
|
|
|
2020-05-18 18:58:17 +00:00
|
|
|
logger = logging.getLogger(__name__)
|
2019-11-17 20:45:08 +00:00
|
|
|
|
2020-06-21 18:54:23 +00:00
|
|
|
|
2019-11-17 20:45:08 +00:00
|
|
|
class InductanceChart(FrequencyChart):
|
|
|
|
def __init__(self, name=""):
|
|
|
|
super().__init__(name)
|
|
|
|
self.minDisplayValue = 0
|
|
|
|
self.maxDisplayValue = 100
|
2022-05-24 15:05:59 +00:00
|
|
|
self.name_unit = "H"
|
|
|
|
self.value_function = lambda x: x.inductiveEquivalent()
|