Skip to content

Commit 62efa23

Browse files
authored
[MAINT] fix nistats dependency (#245)
* select specific version of nistats (0.0.1b1) * update period_cut to high_pass
1 parent a756e85 commit 62efa23

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ install_requires =
3131
nipype ~= 1.1.5
3232
pybids ~= 0.9.3
3333
nibabel ~= 2.3.0
34-
nistats ~= 0.0.1b
34+
nistats == 0.0.1b1
3535
nilearn ~= 0.4.2
3636
pandas ~= 0.24.0
3737
numpy

src/nibetaseries/interfaces/nistats.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ def _run_interface(self, runtime):
6060
else:
6161
confounds = None
6262

63-
# high_pass, switch from Hz to Period
64-
high_pass_period = int(1 / self.inputs.high_pass)
65-
6663
# setup the model
6764
model = first_level_model.FirstLevelModel(
6865
t_r=t_r,
@@ -72,7 +69,7 @@ def _run_interface(self, runtime):
7269
smoothing_fwhm=self.inputs.smoothing_kernel,
7370
standardize=True,
7471
signal_scaling=0,
75-
period_cut=high_pass_period,
72+
high_pass=self.inputs.high_pass,
7673
drift_model='cosine',
7774
verbose=1,
7875
fir_delays=self.inputs.fir_delays,
@@ -177,9 +174,6 @@ def _run_interface(self, runtime):
177174
else:
178175
confounds = None
179176

180-
# high_pass, switch from Hz to Period
181-
high_pass_period = int(1 / self.inputs.high_pass)
182-
183177
# setup the model
184178
model = first_level_model.FirstLevelModel(
185179
t_r=t_r,
@@ -189,7 +183,7 @@ def _run_interface(self, runtime):
189183
smoothing_fwhm=self.inputs.smoothing_kernel,
190184
standardize=True,
191185
signal_scaling=0,
192-
period_cut=high_pass_period,
186+
high_pass=self.inputs.high_pass,
193187
drift_model='cosine',
194188
verbose=1
195189
)

0 commit comments

Comments
 (0)