rapidtide 3.0a15__py3-none-any.whl → 3.0.2__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.
@@ -53,6 +53,7 @@ def regressfrommaps(
53
53
  mp_chunksize=50000,
54
54
  showprogressbar=True,
55
55
  alwaysmultiproc=False,
56
+ saveEVsandquit=False,
56
57
  debug=False,
57
58
  ):
58
59
  if debug:
@@ -107,12 +108,6 @@ def regressfrommaps(
107
108
  },
108
109
  )
109
110
 
110
- # and do the filtering
111
- if LGR is not None:
112
- LGR.info("Start filtering operation")
113
- if TimingLGR is not None:
114
- TimingLGR.info("Start filtering operation")
115
-
116
111
  if regressderivs > 0:
117
112
  if debug:
118
113
  print(f"adding derivatives up to order {regressderivs} prior to regression")
@@ -126,9 +121,19 @@ def regressfrommaps(
126
121
  print(f"using raw lagged regressors for regression")
127
122
  regressorset = lagtc
128
123
  evset = rt_floatset(genlagtc.yfromx(initial_fmri_x))
129
-
130
124
  if debug:
131
125
  print(f"{regressorset.shape=}")
126
+
127
+ if saveEVsandquit:
128
+ return 0, regressorset, evset
129
+
130
+ # now do the filtering
131
+ if LGR is not None:
132
+ LGR.info("Start filtering operation")
133
+ if TimingLGR is not None:
134
+ TimingLGR.info("Start filtering operation")
135
+
136
+
132
137
  voxelsprocessed_regressionfilt = tide_linfitfiltpass.linfitfiltpass(
133
138
  numvalidspatiallocs,
134
139
  fmri_data_valid,