Skip to content

Commit

Permalink
Fix "Monitor Cue" with incorrect column indexing (AcademySoftwareFoun…
Browse files Browse the repository at this point in the history
…dation#1431)

Fix "Monitor Cue" with incorrect column indexing for "Min" and "Max"
columns
- Fix the column indexing on the "addColumn" of class CueJobMonitorTree.
- This bug was introduced after the merge from the pull request "Add
multiple GPU support AcademySoftwareFoundation#760 (AcademySoftwareFoundation#924)" on 4/18/22 at 11:45 AM where the
following new columns were introduced on the CueJobMonitorTree: "Gpus",
"Min Gpus", "Max Gpus", "MaxGpuMem" and the indexing of the columns were
wrongly defined.
  • Loading branch information
ramonfigueiredo authored and n-jay committed Jul 26, 2024
1 parent f0a14fa commit ba4fa97
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cuegui/cuegui/CueJobMonitorTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,17 @@ def __init__(self, parent):
data=lambda group: group.data.stats.waiting_frames)
self.addColumn("", 0, id=8)
self.addColumn("", 0, id=9)
self.addColumn("", 0, id=10,
data=lambda group: (group.data.min_cores or ""))
self.addColumn("", 0, id=10)
self.addColumn("", 0, id=11,
data=lambda group: (group.data.min_cores or ""))
self.addColumn("", 0, id=12,
data=lambda group: (
group.data.max_cores > 0 and group.data.max_cores or ""))
self.addColumn("", 0, id=12,
data=lambda group: (group.data.min_gpus or ""))
self.addColumn("", 0, id=13,
data=lambda group: (group.data.min_gpus or ""))
self.addColumn("", 0, id=14,
data=lambda group: (
group.data.max_gpus > 0 and group.data.max_gpus or ""))
self.addColumn("", 0, id=14)
self.addColumn("", 0, id=15)
self.addColumn("", 0, id=16)
self.addColumn("", 0, id=17)
Expand Down

0 comments on commit ba4fa97

Please sign in to comment.