rapidtide 3.0a8__py3-none-any.whl → 3.0a9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rapidtide/OrthoImageItem.py +0 -1
- rapidtide/RapidtideDataset.py +42 -4
- rapidtide/data/examples/src/testfmri +1 -1
- rapidtide/tidepoolTemplate.py +84 -167
- rapidtide/tidepoolTemplate.ui +64 -44
- rapidtide/tidepoolTemplate_alt.py +90 -172
- rapidtide/tidepoolTemplate_alt.ui +63 -44
- rapidtide/tidepoolTemplate_alt2.ui +1965 -0
- rapidtide/tidepoolTemplate_alt_qt6.py +17 -3
- rapidtide/tidepoolTemplate_big.py +992 -0
- rapidtide/tidepoolTemplate_big.ui +582 -75
- rapidtide/tidepoolTemplate_big_qt6.py +990 -0
- rapidtide/tidepoolTemplate_qt6.py +19 -9
- rapidtide/workflows/rapidtide.py +8 -5
- rapidtide/workflows/tidepool.py +178 -249
- {rapidtide-3.0a8.dist-info → rapidtide-3.0a9.dist-info}/METADATA +1 -1
- {rapidtide-3.0a8.dist-info → rapidtide-3.0a9.dist-info}/RECORD +21 -18
- {rapidtide-3.0a8.dist-info → rapidtide-3.0a9.dist-info}/WHEEL +1 -1
- {rapidtide-3.0a8.dist-info → rapidtide-3.0a9.dist-info}/LICENSE +0 -0
- {rapidtide-3.0a8.dist-info → rapidtide-3.0a9.dist-info}/entry_points.txt +0 -0
- {rapidtide-3.0a8.dist-info → rapidtide-3.0a9.dist-info}/top_level.txt +0 -0
rapidtide/OrthoImageItem.py
CHANGED
rapidtide/RapidtideDataset.py
CHANGED
|
@@ -39,6 +39,34 @@ atlases = {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
|
|
42
|
+
def check_rt_spatialmatch(dataset1, dataset2):
|
|
43
|
+
if (
|
|
44
|
+
(dataset1.xdim == dataset2.xdim)
|
|
45
|
+
and (dataset1.ydim == dataset2.ydim)
|
|
46
|
+
and (dataset1.zdim == dataset2.zdim)
|
|
47
|
+
):
|
|
48
|
+
dimmatch = True
|
|
49
|
+
else:
|
|
50
|
+
dimmatch = False
|
|
51
|
+
if (
|
|
52
|
+
(dataset1.xsize == dataset2.xsize)
|
|
53
|
+
and (dataset1.ysize == dataset2.ysize)
|
|
54
|
+
and (dataset1.zsize == dataset2.zsize)
|
|
55
|
+
):
|
|
56
|
+
sizematch = True
|
|
57
|
+
else:
|
|
58
|
+
sizematch = False
|
|
59
|
+
if dataset1.space == dataset2.space:
|
|
60
|
+
spacematch = True
|
|
61
|
+
else:
|
|
62
|
+
spacematch = False
|
|
63
|
+
if dataset1.affine == dataset2.affine:
|
|
64
|
+
affinematch = True
|
|
65
|
+
else:
|
|
66
|
+
affinematch = False
|
|
67
|
+
return dimmatch, sizematch, spacematch, affinematch
|
|
68
|
+
|
|
69
|
+
|
|
42
70
|
class Timecourse:
|
|
43
71
|
"Store a timecourse and some information about it"
|
|
44
72
|
|
|
@@ -159,6 +187,8 @@ class Overlay:
|
|
|
159
187
|
self.setGeomMask(geommask, maskdata=False)
|
|
160
188
|
self.maskData()
|
|
161
189
|
self.updateStats()
|
|
190
|
+
self.dispmin = self.robustmin
|
|
191
|
+
self.dispmax = self.robustmax
|
|
162
192
|
if init_LUT:
|
|
163
193
|
self.gradient = getagradient()
|
|
164
194
|
self.lut_state = lut_state
|
|
@@ -242,8 +272,6 @@ class Overlay:
|
|
|
242
272
|
self.pct75,
|
|
243
273
|
self.robustmax,
|
|
244
274
|
) = tide_stats.getfracvals(calcmaskeddata, [0.02, 0.25, 0.5, 0.75, 0.98], nozero=False)
|
|
245
|
-
self.dispmin = self.robustmin
|
|
246
|
-
self.dispmax = self.robustmax
|
|
247
275
|
self.histy, self.histx = np.histogram(
|
|
248
276
|
calcmaskeddata, bins=np.linspace(self.minval, self.maxval, 200)
|
|
249
277
|
)
|
|
@@ -452,6 +480,8 @@ class RapidtideDataset:
|
|
|
452
480
|
ysize = 0.0
|
|
453
481
|
zsize = 0.0
|
|
454
482
|
tr = 0.0
|
|
483
|
+
space = None
|
|
484
|
+
affine = None
|
|
455
485
|
|
|
456
486
|
def __init__(
|
|
457
487
|
self,
|
|
@@ -1058,7 +1088,11 @@ class RapidtideDataset:
|
|
|
1058
1088
|
return self.regressors
|
|
1059
1089
|
|
|
1060
1090
|
def setfocusregressor(self, whichregressor):
|
|
1061
|
-
|
|
1091
|
+
try:
|
|
1092
|
+
testregressor = self.regressors[whichregressor]
|
|
1093
|
+
self.focusregressor = whichregressor
|
|
1094
|
+
except KeyError:
|
|
1095
|
+
self.focusregressor = "prefilt"
|
|
1062
1096
|
|
|
1063
1097
|
def setupoverlays(self):
|
|
1064
1098
|
# load the overlays
|
|
@@ -1287,4 +1321,8 @@ class RapidtideDataset:
|
|
|
1287
1321
|
return self.overlays
|
|
1288
1322
|
|
|
1289
1323
|
def setfocusmap(self, whichmap):
|
|
1290
|
-
|
|
1324
|
+
try:
|
|
1325
|
+
testmap = self.overlays[whichmap]
|
|
1326
|
+
self.focusmap = whichmap
|
|
1327
|
+
except KeyError:
|
|
1328
|
+
self.focusmap = "lagtimes"
|