rapidtide 3.0.10__py3-none-any.whl → 3.0.11__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.
@@ -137,6 +137,7 @@ class OrthoImageItem(QtWidgets.QWidget):
137
137
  ):
138
138
  QtWidgets.QWidget.__init__(self)
139
139
  self.map = map
140
+ self.mapname = self.map.label
140
141
  self.bgmap = bgmap
141
142
  self.axview = axview
142
143
  self.corview = corview
@@ -180,6 +181,7 @@ class OrthoImageItem(QtWidgets.QWidget):
180
181
 
181
182
  if self.verbose > 1:
182
183
  print("OrthoImageItem initialization:")
184
+ print(" Map name:", self.mapname)
183
185
  print(" Dimensions:", self.xdim, self.ydim, self.zdim)
184
186
  print(" Voxel sizes:", self.xsize, self.ysize, self.zsize)
185
187
  print(" FOVs:", self.xfov, self.yfov, self.zfov)
@@ -361,6 +363,7 @@ class OrthoImageItem(QtWidgets.QWidget):
361
363
  def setMap(self, themap):
362
364
  self.map = themap
363
365
  self.tdim = self.map.tdim
366
+ self.mapname = self.map.label
364
367
 
365
368
  def enableView(self):
366
369
  if self.button is not None:
rapidtide/_version.py CHANGED
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2025-08-18T17:30:20-0400",
11
+ "date": "2025-08-27T10:21:33-0400",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "939d31d88a5839ee746b0f84f4d370248fe5b312",
15
- "version": "3.0.10"
14
+ "full-revisionid": "078ea587f66134f5bb1f53817240da52156cf7f1",
15
+ "version": "3.0.11"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -72,5 +72,12 @@
72
72
  happy \
73
73
  sub-HAPPYTEST.nii.gz \
74
74
  sub-HAPPYTEST.json \
75
- ../dst/happy_newdefaults \
75
+ ../dst/happy_mask \
76
+ --processmask sub-HAPPYTEST_mask.nii.gz \
77
+ --nprocs -1
78
+
79
+ happy \
80
+ sub-HAPPYTEST.nii.gz \
81
+ sub-HAPPYTEST.json \
82
+ ../dst/happy \
76
83
  --nprocs -1
rapidtide/fit.py CHANGED
@@ -258,7 +258,7 @@ def trapezoid_eval(x, toplength, p):
258
258
 
259
259
  The trapezoidal function is defined as:
260
260
 
261
- f(x) = A \* (1 - exp(-x / tau))
261
+ f(x) = A * (1 - exp(-x / tau))
262
262
 
263
263
  if 0 <= x < L
264
264
 
@@ -24,7 +24,6 @@ import warnings
24
24
  from pathlib import Path
25
25
 
26
26
  import numpy as np
27
- from scipy.stats import pearsonr
28
27
 
29
28
  import rapidtide.correlate as tide_corr
30
29
  import rapidtide.filter as tide_filt
@@ -195,7 +194,18 @@ def happy_main(argparsingfunc):
195
194
 
196
195
  # make and save a mask of the voxels to process based on image intensity
197
196
  tide_util.logmem("before mask creation")
198
- mask = np.uint16(tide_mask.makeepimask(input_data.nim).dataobj.reshape(numspatiallocs))
197
+ if args.processmask is not None:
198
+ mask = tide_mask.readamask(
199
+ args.processmask,
200
+ input_data.copyheader(numtimepoints=1),
201
+ xsize,
202
+ maskname="process",
203
+ debug=args.debug,
204
+ )
205
+ mask = np.uint16(np.where(mask > 0, 1, 0).reshape(numspatiallocs))
206
+ else:
207
+ mask = np.uint16(tide_mask.makeepimask(input_data.nim).dataobj.reshape(numspatiallocs))
208
+
199
209
  theheader = input_data.copyheader(numtimepoints=1)
200
210
  timings.append(["Mask created", time.time(), None, None])
201
211
  if args.outputlevel > 0:
@@ -556,6 +556,18 @@ def _get_parser():
556
556
 
557
557
  # Add miscellaneous options
558
558
  misc_opts = parser.add_argument_group("Miscellaneous options.")
559
+ misc_opts.add_argument(
560
+ "--processmask",
561
+ dest="processmask",
562
+ action="store",
563
+ metavar="MASKNAME",
564
+ help=(
565
+ "Instead of dynamically generating a processing mask from the data, use "
566
+ "the mask specified in the file MASKNAME. "
567
+ "The mask must be a 3D NIFTI file with x, y, z dimensions matching the fMRI data. "
568
+ ),
569
+ default=None,
570
+ )
559
571
  misc_opts.add_argument(
560
572
  "--aliasedcorrelation",
561
573
  dest="doaliasedcorrelation",
@@ -2052,19 +2052,19 @@ def tidepool(args):
2052
2052
  },
2053
2053
  "varBefore": {
2054
2054
  "colormap": gen_thermal_state(),
2055
- "label": "LFO variance before filtering",
2055
+ "label": "LFO var. before filtering",
2056
2056
  "display": extramaps,
2057
2057
  "funcmask": "p_lt_0p050_mask",
2058
2058
  },
2059
2059
  "varAfter": {
2060
2060
  "colormap": gen_thermal_state(),
2061
- "label": "LFO variance after filtering",
2061
+ "label": "LFO var. after filtering",
2062
2062
  "display": extramaps,
2063
2063
  "funcmask": "p_lt_0p050_mask",
2064
2064
  },
2065
2065
  "varChange": {
2066
2066
  "colormap": gen_thermal_state(),
2067
- "label": "LFO variance decrease %",
2067
+ "label": "LFO var. decrease %",
2068
2068
  "display": True,
2069
2069
  "funcmask": "p_lt_0p050_mask",
2070
2070
  },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rapidtide
3
- Version: 3.0.10
3
+ Version: 3.0.11
4
4
  Summary: Tools for performing correlation analysis on fMRI data.
5
5
  Author: Taylor Salo, Daniel M. Drucker, Ph.D., Jeffrey N Stout, Yaroslav O. Halchenko, Derek Monroe
6
6
  Author-email: "Blaise deB. Frederick" <blaise.frederick@gmail.com>
@@ -42,13 +42,13 @@ Requires-Dist: tensorflow>=2.18.0
42
42
  Requires-Dist: tf-keras>=2.18.0
43
43
  Requires-Dist: tqdm
44
44
  Requires-Dist: versioneer
45
- Provides-Extra: tests
46
- Requires-Dist: codecov; extra == "tests"
47
- Requires-Dist: coverage; extra == "tests"
48
- Requires-Dist: coveralls; extra == "tests"
49
- Requires-Dist: flake8-black; extra == "tests"
50
- Requires-Dist: pytest; extra == "tests"
51
- Requires-Dist: pytest-cov; extra == "tests"
45
+ Provides-Extra: test
46
+ Requires-Dist: codecov; extra == "test"
47
+ Requires-Dist: coverage; extra == "test"
48
+ Requires-Dist: coveralls; extra == "test"
49
+ Requires-Dist: flake8-black; extra == "test"
50
+ Requires-Dist: pytest; extra == "test"
51
+ Requires-Dist: pytest-cov; extra == "test"
52
52
  Provides-Extra: doc
53
53
  Requires-Dist: sphinx; extra == "doc"
54
54
  Requires-Dist: sphinx_rtd_theme; extra == "doc"
@@ -7,10 +7,10 @@ cloud/rapidtide-HCPYA,sha256=kqW8ENbOQhvVqZGz-HqiVbrbzHy4cfyy1rk8ejpJor0,963
7
7
  cloud/rapidtide-cloud-test,sha256=SATOwGo4QYLvt-6hE0e3wyK9JjuDU5XzfLrfMoybvcY,466
8
8
  cloud/simple-cp-test,sha256=5ef8wmLfcKdny59BV6_DnAPj7O_mi0rOHdFZVN2iiLA,421
9
9
  rapidtide/Colortables.py,sha256=OVtgnQ9xTJPgfdyK1ktESHRjBh09cxLVPZvgUvV5jOo,5814
10
- rapidtide/OrthoImageItem.py,sha256=BVvIPtx8rCjk2vDCDYOILJYSEfrDZtLK19Facz59Gyc,21974
10
+ rapidtide/OrthoImageItem.py,sha256=bF4-2zeYdBpFLo88Xh9_YP77rPO2iZUXYIW1-fISyfA,22099
11
11
  rapidtide/RapidtideDataset.py,sha256=HNo20XDA5UX8uErL43XCsn3LtqPmfeBDJplOeESSNho,53526
12
12
  rapidtide/__init__.py,sha256=cECnPfGNIWXETiummGLjKcNXLROSDiFlLp-RpZSavwc,97
13
- rapidtide/_version.py,sha256=Ns5TcocXs50JS4gK337_iat2ybvs5LnpSO11KL_PZrE,498
13
+ rapidtide/_version.py,sha256=VpdusWoveo4WzCtORlRLO4_cUPh967EA-ngtS9BSCW8,498
14
14
  rapidtide/calccoherence.py,sha256=-_vglu0MZB85Aodw6GpYhBApFBt5eslppfxF4rXM6Xg,3409
15
15
  rapidtide/calcnullsimfunc.py,sha256=j5mPfaRCpJvu8R-kHFzn6vrIQVhCdPPDTSYXslaZU_c,5030
16
16
  rapidtide/calcsimfunc.py,sha256=xCPYns-XOnLWjwujbP7a7EwGEzhEwOHMf04RpFlL3SI,4713
@@ -19,7 +19,7 @@ rapidtide/dlfilter.py,sha256=sJ1UoekNFlGVJOIeN6BKP_-pU-MOHD5Gc4GT7FTB2So,58161
19
19
  rapidtide/externaltools.py,sha256=-p2GZRRpI2_7eRY8N6lnG4DBQKoRd_WZZQzvgFCicUY,3965
20
20
  rapidtide/fMRIData_class.py,sha256=ELJf7iHkLUjASiZRekdY6Zafsq1RHsH0htITrBepYpY,4448
21
21
  rapidtide/filter.py,sha256=ErHjV3tj3R-Q02kGFksIviKda65y1xB_9MR1Cip1uho,70231
22
- rapidtide/fit.py,sha256=VPuc-Lwt3kuNgRj0pu32hfz9cRUBLcJk1PJbX4gonxc,90100
22
+ rapidtide/fit.py,sha256=C2V7qG0jZ5NjZ8xEwx5xbWPohIeDeqjL66dCdFlQT2Y,90099
23
23
  rapidtide/genericmultiproc.py,sha256=ZQwN84HpC7ZA_w4qekBqA4suU_70ryqGjAsTAIa4oSw,3423
24
24
  rapidtide/happy_supportfuncs.py,sha256=GiUwfjf0ZIYEvN2Fvauhtv58hdiAuQytwx11ZPX8Uvo,56261
25
25
  rapidtide/helper_classes.py,sha256=14q92myZQPl_AUTjh5l1dm6y5-3JkW0xCAEKpgyiuXY,10534
@@ -70,7 +70,7 @@ rapidtide/data/examples/src/testfmridocker,sha256=jjL7bK29rrcog6uO9BtvcyAU3Sv8_5
70
70
  rapidtide/data/examples/src/testfrozen,sha256=K3qUWDRKPPiCXRgIFuPdwUUjUTzf4QBW8UUhR75NzDM,283
71
71
  rapidtide/data/examples/src/testfuncs,sha256=zjq9u7mXMf0UlbUgePyS1mj7QHclicmw6NY0g31SqeY,1551
72
72
  rapidtide/data/examples/src/testglmfilt,sha256=MuZlVBJIV7FrTWFLKGuWBcpR9WiZEjCGeD6cAnJLeNI,3357
73
- rapidtide/data/examples/src/testhappy,sha256=bH2pYc60BtpS1OkbFfmsrvc50pN84lnOI6sPqjkMfaQ,1530
73
+ rapidtide/data/examples/src/testhappy,sha256=d625dqMgzuzieuV5J9UDEp55DtMORnw_e1BNvgOfSAs,1665
74
74
  rapidtide/data/examples/src/testinitdelay,sha256=ts_r5WZBLJDQ3UfPmJ9sfXlO0arO9dhGCQ_Y1wYvjMk,559
75
75
  rapidtide/data/examples/src/testlinfit,sha256=oPnkHJ6lcwsuJhnSMMK7Gx3DHSCf6JK7CIYuIMHbyNA,471
76
76
  rapidtide/data/examples/src/testlocalflow,sha256=hEwstisbWVuALr_29fBJ2nHETKkEF_9qK8wJ4kzuiJk,596
@@ -129,6 +129,8 @@ rapidtide/data/reference/JHU-ArterialTerritoriesNoVent-LVL1-seg2_regions.txt,sha
129
129
  rapidtide/data/reference/JHU-ArterialTerritoriesNoVent-LVL1-seg2_space-MNI152NLin6Asym_2mm.nii.gz,sha256=xIM9iAo1ztHAH0ihbwYMWw7C_px7HSN11DmENtpUA94,167371
130
130
  rapidtide/data/reference/JHU-ArterialTerritoriesNoVent-LVL1.xml,sha256=rBCJlGbYkquJJogj4AXd-RQspCW8Zdp_gyJaHKrC7D0,5563
131
131
  rapidtide/data/reference/JHU-ArterialTerritoriesNoVent-LVL1_regions.txt,sha256=7ESGMqBtDNFcO3So9h22o1-B2CfBA0kD3hjCJ5tpnFU,160
132
+ rapidtide/data/reference/JHU-ArterialTerritoriesNoVent-LVL1_space-MNI152NLin2009cAsym_2mm.nii.gz,sha256=2C2ki5IKk_ONSQKR1EO827ztdYo_5X6iAeFmtI09zmI,58100
133
+ rapidtide/data/reference/JHU-ArterialTerritoriesNoVent-LVL1_space-MNI152NLin2009cAsym_2mm_mask.nii.gz,sha256=7aFfHRz3R-Ox2rp8bY_Fdb30V-gJAbQu6mZAmvIGCs0,42333
132
134
  rapidtide/data/reference/JHU-ArterialTerritoriesNoVent-LVL1_space-MNI152NLin6Asym_2mm.nii.gz,sha256=59jvK4oRbBwXr2hLvkMrFhg7D1mhQqB_iE7w2UeHwzE,123094
133
135
  rapidtide/data/reference/JHU-ArterialTerritoriesNoVent-LVL1_space-MNI152NLin6Asym_2mm_mask.nii.gz,sha256=czFxUYChXvCpA8USfghVK-NMB1JpBGHujrSq23BwvCE,38701
134
136
  rapidtide/data/reference/JHU-ArterialTerritoriesNoVent-LVL2.xml,sha256=ay_Dm2R8FFbwTXau7MPGQhSVK_d1zgD6S6GxR7W_YzY,3351
@@ -306,9 +308,9 @@ rapidtide/workflows/filttc.py,sha256=QHMJ41ZORxB8fG4IcvxKUgSfmOL4X9cFQFpM5px1Uxw
306
308
  rapidtide/workflows/fitSimFuncMap.py,sha256=SwyOs8QJHEB8QK6GwKLrGvhg9Cc0wpqYgGt9L1mXB00,16711
307
309
  rapidtide/workflows/fixtr.py,sha256=KYr3veeHDUjozH3IO-0iPhLqNDGEc2NcUvzn6tuxeN8,2025
308
310
  rapidtide/workflows/gmscalc.py,sha256=Z-3HV2EU-HuIhpr7s5u4EAPAaW0gXtj2aVZt7386Gr8,6258
309
- rapidtide/workflows/happy.py,sha256=jx3YgNfwIbKLdawilyoirrb0mNLrWJJdKiVC_tywBXk,77204
311
+ rapidtide/workflows/happy.py,sha256=YMcQ5ji5_ggjOUoryRmk1V0cIX7k1oW40WXVn5H2C6o,77507
310
312
  rapidtide/workflows/happy2std.py,sha256=6gya9YjfPzPMu15jsMUbu7pLq430-n3b3meiTWhRkAo,8132
311
- rapidtide/workflows/happy_parser.py,sha256=OQTcUIvB61p0niNpG__9auUINb962PKmp0wz6qj_uN8,27354
313
+ rapidtide/workflows/happy_parser.py,sha256=ZkD3hUEcQUCz4JBTmWWR9cLYNY_CUD1x6U5asNOfai8,27791
312
314
  rapidtide/workflows/histnifti.py,sha256=BeABj0osc0mEnmyKonN0Hgeis8L8soO-w-cVaeMKLUI,11197
313
315
  rapidtide/workflows/histtc.py,sha256=ZiLLTshdpQBVHja1jEGFiaZ-YVxVhVtFeGv9w5R7HFc,4561
314
316
  rapidtide/workflows/linfitfilt.py,sha256=J6_qFZrfEf8Zf7-JA9EMaSXvyV_2ViNIqzju-ugjNGU,10007
@@ -350,12 +352,12 @@ rapidtide/workflows/spectrogram.py,sha256=7_CzFgX9ppE_2C4GiSP235BRUoh3YspCR_57_5
350
352
  rapidtide/workflows/synthASL.py,sha256=v4zkfrXbb6Y06IsAhSm3ZmL4UTPYWaK3vPnP3bKr-co,4971
351
353
  rapidtide/workflows/tcfrom2col.py,sha256=o7IEQ-YqN_VDu-f_9lme4DtSn8EbYCK5TCwGBGGr0YY,1936
352
354
  rapidtide/workflows/tcfrom3col.py,sha256=kV3V-qZ7A7LkD96aHVXabvohA8udsflHXnzsQIwiKug,1938
353
- rapidtide/workflows/tidepool.py,sha256=l9SNEDQaUGBGTmaFbpDHR9VDfGZlSvq1SlV6jJMS88M,87850
355
+ rapidtide/workflows/tidepool.py,sha256=fl78xbAwyeh13du8i4lLyfeN2y-z33XNuOM2RNY6hew,87838
354
356
  rapidtide/workflows/utils.py,sha256=urIN-042oUCRDusVUSjBelVN3Te2JP3svY3ckq-yBMU,5379
355
357
  rapidtide/workflows/variabilityizer.py,sha256=h7Hhrxn84MclRfbAvKIZJoNzlcKO-8d9lZ6y6YFStk8,3167
356
- rapidtide-3.0.10.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
357
- rapidtide-3.0.10.dist-info/METADATA,sha256=V4Q_tLKVmClm1_VK6bmwluPj8gKCbrHimCxH1m5SIY8,15705
358
- rapidtide-3.0.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
359
- rapidtide-3.0.10.dist-info/entry_points.txt,sha256=9NVvZpIx9U6lTWlTFF2ev-wuPAHJxcXI_901_EcGRYA,3323
360
- rapidtide-3.0.10.dist-info/top_level.txt,sha256=MnNXGfbrIBc9RnAqzBHOWd3GQO-aIUDnRTz4_5VjH5g,16
361
- rapidtide-3.0.10.dist-info/RECORD,,
358
+ rapidtide-3.0.11.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
359
+ rapidtide-3.0.11.dist-info/METADATA,sha256=enWIc3wBzPIfPFSEM6k-0elE66KJPuDzEFAlwHvRTnE,15698
360
+ rapidtide-3.0.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
361
+ rapidtide-3.0.11.dist-info/entry_points.txt,sha256=9NVvZpIx9U6lTWlTFF2ev-wuPAHJxcXI_901_EcGRYA,3323
362
+ rapidtide-3.0.11.dist-info/top_level.txt,sha256=MnNXGfbrIBc9RnAqzBHOWd3GQO-aIUDnRTz4_5VjH5g,16
363
+ rapidtide-3.0.11.dist-info/RECORD,,