Skip to content

Commit

Permalink
Enabled radioboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
bbfrederick committed Jan 26, 2025
1 parent 514e267 commit 8619b43
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 0 additions & 2 deletions rapidtide/RapidtideDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,6 @@ def setupoverlays(self):
or (self.coordinatespace == "MNI152NLin6")
or (self.coordinatespace == "MNI152NLin2009cAsym")
):
# self.atlasshortname = 'ASPECTS'
# self.atlasshortname = "ATT"
self.atlasshortname = "JHU1"
self.atlasname = atlases[self.atlasshortname]["atlasname"]
self.atlaslabels = tide_io.readlabels(
Expand Down
22 changes: 15 additions & 7 deletions rapidtide/workflows/tidepool.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def updateAveragingMode():
global overlays
global currentdataset
print("in updateAveragingMode")
if ("atlas" in overlays) and (not atlasaveragingdone) and False:
if ("atlas" in overlays) and (not atlasaveragingdone):
calcAtlasStats()
set_atlasmask()
if ("atlas" in overlays) and False:
Expand Down Expand Up @@ -1692,12 +1692,20 @@ def tidepool(args):
timecourse_ax.enableAutoRange()"""

# wire up the atlas averaging checkboxes
ui.raw_radioButton.setDisabled(True)
ui.mean_radioButton.setDisabled(True)
ui.median_radioButton.setDisabled(True)
ui.CoV_radioButton.setDisabled(True)
ui.std_radioButton.setDisabled(True)
ui.MAD_radioButton.setDisabled(True)
if args.useatlas:
ui.raw_radioButton.setDisabled(False)
ui.mean_radioButton.setDisabled(False)
ui.median_radioButton.setDisabled(False)
ui.CoV_radioButton.setDisabled(False)
ui.std_radioButton.setDisabled(False)
ui.MAD_radioButton.setDisabled(False)
else:
ui.raw_radioButton.setDisabled(True)
ui.mean_radioButton.setDisabled(True)
ui.median_radioButton.setDisabled(True)
ui.CoV_radioButton.setDisabled(True)
ui.std_radioButton.setDisabled(True)
ui.MAD_radioButton.setDisabled(True)

ui.raw_radioButton.clicked.connect(raw_radioButton_clicked)
ui.mean_radioButton.clicked.connect(mean_radioButton_clicked)
Expand Down

0 comments on commit 8619b43

Please sign in to comment.