fix entry point
This commit is contained in:
parent
919101b339
commit
5c4f7e5c97
|
@ -5,7 +5,6 @@ from typing import Callable, List, Tuple
|
||||||
import matplotlib as mpl
|
import matplotlib as mpl
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import xarray as xr
|
import xarray as xr
|
||||||
from gui_helpers import FlowLayout
|
|
||||||
from matplotlib import pyplot as plt
|
from matplotlib import pyplot as plt
|
||||||
from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg
|
from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg
|
||||||
from matplotlib.ticker import EngFormatter
|
from matplotlib.ticker import EngFormatter
|
||||||
|
@ -23,7 +22,9 @@ from PySide6.QtWidgets import (
|
||||||
QWidget,
|
QWidget,
|
||||||
)
|
)
|
||||||
from skrf import plotting as rf_plt
|
from skrf import plotting as rf_plt
|
||||||
from util import db20, s2vswr
|
|
||||||
|
from charon_vna.gui_helpers import FlowLayout
|
||||||
|
from charon_vna.util import db20, s2vswr
|
||||||
|
|
||||||
# from vna import Charon
|
# from vna import Charon
|
||||||
|
|
||||||
|
@ -201,9 +202,14 @@ class MainWindow(QMainWindow):
|
||||||
# TODO: load config
|
# TODO: load config
|
||||||
|
|
||||||
|
|
||||||
|
def main() -> None:
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
|
|
||||||
window = MainWindow()
|
window = MainWindow()
|
||||||
window.show()
|
window.show()
|
||||||
|
|
||||||
app.exec()
|
app.exec()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|
|
@ -29,7 +29,8 @@ dynamic = ["version"]
|
||||||
homepage = "https://git.brendanhaines.com/brendanhaines/charon"
|
homepage = "https://git.brendanhaines.com/brendanhaines/charon"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
# charon = "charon.charon:main"
|
# charon-cli = "charon_vna.cli:main"
|
||||||
|
charon-gui = "charon_vna.gui:main"
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
[tool.setuptools_scm]
|
||||||
version_file = "charon_vna/_version.py"
|
version_file = "charon_vna/_version.py"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user