Skip to content

Commit

Permalink
XEL-55 Display name for runs slightly modified for multiclassScreenin…
Browse files Browse the repository at this point in the history
…g tasks to represent MCS_[TaskDesign]_[NumClasses]_[Paradigm] as name
  • Loading branch information
Erdi-Erdal committed Feb 20, 2024
1 parent e8b4133 commit 45c58c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xelo2/gui/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,11 @@ def list_runs(self, sess=None):
l.clear()

for i, run in enumerate(sess.list_runs()):
item = QListWidgetItem_time(run, f'#{i + 1: 3d}: {run.task_name}')
# checking for multiClassScreening for different display of task name in the list
if run.task_name == "MultiClassScreening":
item = QListWidgetItem_time(run, f'#{i + 1: 3d}: MCS_{run.mcs_task_design}_{run.mcs_num_classes}_{run.mcs_paradigm}')
else:
item = QListWidgetItem_time(run, f'#{i + 1: 3d}: {run.task_name}')
if run.id in self.search.runs:
highlight(item)
self.lists['runs'].addItem(item)
Expand Down Expand Up @@ -1442,7 +1446,7 @@ def make_edit(value):

def make_integer(value):
w = QSpinBox()
w.setRange(-2e7, 2e7)
# w.setRange(-2e7, 2e7)

if value is None:
w.setValue(0)
Expand Down

0 comments on commit 45c58c4

Please sign in to comment.