Skip to content

Commit

Permalink
Fixed bugs in GUI and fixed Numpy versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Houman.M_Dastjerdi committed Sep 29, 2023
1 parent 0efe87d commit 1e84f97
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions piscat/GUI/Visualization/image_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __del__(self):
print("Destructor called, Employee deleted.")

def starter(self):
self.setWindowIcon(QtWidgets.QIcon(QtCore.QDir.currentPath() + "/icons/mpl.png"))
self.setWindowIcon(QtGui.QIcon(QtCore.QDir.currentPath() + "/icons/mpl.png"))
self.setWindowTitle(self.title)
self.setGeometry(490, 100, 512 + 124, 512 + 93)
self.main_Viewer_frame = QtWidgets.QFrame()
Expand Down Expand Up @@ -180,7 +180,7 @@ def starter(self):

# Create
self.connect(
QtWidgets.QShortcut(QtWidgets.QKeySequence(QtCore.Qt.Key_H), self),
QtGui.QShortcut(QtGui.QKeySequence(QtCore.Qt.Key_H), self),
QtCore.SIGNAL("activated()"),
self.histogram,
)
Expand Down
2 changes: 1 addition & 1 deletion piscat/GUI/Visualization/slice_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self, input_video, video_original, stride=1, mask=False, *args, **k
self.annotation_s.connect(self.active_spatial_live_paint)
self.annotation_t.connect(self.active_temporal_live_paint)

self.setBackgroundBrush(QtWidgets.QColor(0, 0, 0))
self.setBackgroundBrush(QtGui.QColor(0, 0, 0))
self.setScene(self.scene)

self.setTransformationAnchor(QtWidgets.QGraphicsView.AnchorUnderMouse)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ matplotlib
networkx
notebook
numba
numpy
numpy==1.23.5
opencv-python
pandas<2.0
psutil
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
long_description=open("README.md").read() if exists("README.md") else "",
long_description_content_type="text/markdown",
install_requires=[
"numpy>=1.22.0",
"numpy==1.23.5",
"scipy>=0.14.0",
"matplotlib",
"opencv-python",
Expand Down

0 comments on commit 1e84f97

Please sign in to comment.