Skip to content

Commit

Permalink
Test again with PyQt5 alone
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenain committed Feb 5, 2025
1 parent 8ca0edb commit 1fca887
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 45 deletions.
3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ dependencies:
- pydata-sphinx-theme
- lmfit # needed into TRR
- h5py # needed into TRR (should be removed to use I/O methods of containers)
- pyqt # [linux]
- pyside6 # [osx and arm64]
- pyqt
- pyqtgraph
- pip:
- zeo
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ dependencies = [
"zeo",
"lmfit",
"h5py",
'pyqt5 ; platform_system == "Linux"',
'pyqt6 ; platform_system != "Linux"', # for macOS
'pyqt5',
# 'pyqt6 ; platform_system != "Linux"', # for macOS
"pyqtgraph",
]

Expand Down
59 changes: 18 additions & 41 deletions src/nectarchain/trr_test_suite/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,26 @@
import sys
import tempfile

from matplotlib.backends.backend_qt5 import NavigationToolbar2QT as NavigationToolbar
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure

try:
from matplotlib.backends.backend_qt import NavigationToolbar2QT as NavigationToolbar
from PyQt6.QtCore import QProcess, QTimer
from PyQt6.QtWidgets import (
QApplication,
QComboBox,
QGroupBox,
QHBoxLayout,
QLabel,
QLineEdit,
QMessageBox,
QPushButton,
QSizePolicy,
QSpacerItem,
QTextEdit,
QVBoxLayout,
QWidget,
QWidgetItem,
)
except ImportError:
from PyQt5.QtCore import QProcess, QTimer
from PyQt5.QtWidgets import (
QApplication,
QComboBox,
QGroupBox,
QHBoxLayout,
QLabel,
QLineEdit,
QMessageBox,
QPushButton,
QSizePolicy,
QSpacerItem,
QTextEdit,
QVBoxLayout,
QWidget,
QWidgetItem,
)
from matplotlib.backends.backend_qt5 import (
NavigationToolbar2QT as NavigationToolbar,
)
from PyQt5.QtCore import QProcess, QTimer
from PyQt5.QtWidgets import (
QApplication,
QComboBox,
QGroupBox,
QHBoxLayout,
QLabel,
QLineEdit,
QMessageBox,
QPushButton,
QSizePolicy,
QSpacerItem,
QTextEdit,
QVBoxLayout,
QWidget,
QWidgetItem,
)

import nectarchain.trr_test_suite.deadtime as deadtime
import nectarchain.trr_test_suite.linearity as linearity
Expand Down

0 comments on commit 1fca887

Please sign in to comment.