diff --git a/NanoVNASaver/Analysis/AntennaAnalysis.py b/NanoVNASaver/Analysis/AntennaAnalysis.py index dcf0465..d69a243 100644 --- a/NanoVNASaver/Analysis/AntennaAnalysis.py +++ b/NanoVNASaver/Analysis/AntennaAnalysis.py @@ -1,11 +1,29 @@ +# NanoVNASaver +# +# A python program to view and export Touchstone data from a NanoVNA +# Copyright (C) 2020 NanoVNA-Saver Authors +# +# 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 . ''' -Created on 30 giu 2020 +Created on May 30th 2020 @author: mauro ''' +import logging from PyQt5 import QtWidgets -import logging + from NanoVNASaver.Analysis.VSWRAnalysis import VSWRAnalysis diff --git a/NanoVNASaver/Analysis/__init__.py b/NanoVNASaver/Analysis/__init__.py index 0121149..c463400 100644 --- a/NanoVNASaver/Analysis/__init__.py +++ b/NanoVNASaver/Analysis/__init__.py @@ -6,3 +6,4 @@ from .LowPassAnalysis import LowPassAnalysis from .PeakSearchAnalysis import PeakSearchAnalysis from .SimplePeakSearchAnalysis import SimplePeakSearchAnalysis from .VSWRAnalysis import VSWRAnalysis +from .AntennaAnalysis import MagLoopAnalysis diff --git a/NanoVNASaver/Windows/AnalysisWindow.py b/NanoVNASaver/Windows/AnalysisWindow.py index 20bc499..bac9206 100644 --- a/NanoVNASaver/Windows/AnalysisWindow.py +++ b/NanoVNASaver/Windows/AnalysisWindow.py @@ -22,8 +22,7 @@ from PyQt5 import QtWidgets, QtCore from NanoVNASaver.Analysis import Analysis, LowPassAnalysis, HighPassAnalysis, \ BandPassAnalysis, BandStopAnalysis, VSWRAnalysis, \ - SimplePeakSearchAnalysis -# from NanoVNASaver.Analysis.AntennaAnalysis import MagLoopAnalysis + SimplePeakSearchAnalysis, MagLoopAnalysis logger = logging.getLogger(__name__) @@ -54,7 +53,7 @@ class AnalysisWindow(QtWidgets.QWidget): # self.analysis_list.addItem("Peak search", PeakSearchAnalysis(self.app)) self.analysis_list.addItem("Peak search", SimplePeakSearchAnalysis(self.app)) self.analysis_list.addItem("VSWR analysis", VSWRAnalysis(self.app)) - # self.analysis_list.addItem("MagLoop analysis", MagLoopAnalysis(self.app)) + self.analysis_list.addItem("MagLoop analysis", MagLoopAnalysis(self.app)) select_analysis_layout.addRow("Analysis type", self.analysis_list) self.analysis_list.currentIndexChanged.connect(self.updateSelection)