Skip to content

Commit

Permalink
manual assign bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ramintoosi committed Jul 9, 2023
1 parent eb31bcd commit 7465de1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ross_ui/controller/mainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,12 +1211,11 @@ def removeManual(self, selected_clusters):
def assignManual(self):
self.subwindow_assign.setVisible(True)

n_clusters = len(np.unique(self.clusters_tmp))

try:
self.listSourceWidget.clear()
self.listTargetsWidget.clear()
for i in range(n_clusters):
cu = np.unique(self.clusters_tmp)
for i in range(len(cu[cu != -1])):
item1 = QtWidgets.QListWidgetItem("Cluster %i" % (i + 1))
item2 = QtWidgets.QListWidgetItem("Cluster %i" % (i + 1))
self.listSourceWidget.addItem(item1)
Expand Down

0 comments on commit 7465de1

Please sign in to comment.