Skip to content

Commit

Permalink
[MAINT] remove some old mention of nistats (#4200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jan 9, 2024
1 parent b34307a commit 6e125cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/04_glm_first_level/plot_bids_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
with derivatives from openneuro.
2. Extract first level model objects automatically
from the :term:`BIDS` dataset.
3. Demonstrate Quality assurance of Nistats estimation against available FSL.
3. Demonstrate Quality assurance of Nilearn estimation against available FSL.
estimation in the openneuro dataset.
4. Display contrast plot and uncorrected first level statistics table report.
"""
Expand Down
8 changes: 4 additions & 4 deletions nilearn/glm/tests/test_dmtx.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def test_cosine_drift():
spm_drifts = DESIGN_MATRIX["cosbf_dt_1_nt_20_hcut_0p1"]
frame_times = np.arange(20)
high_pass_frequency = 0.1
nistats_drifts = create_cosine_drift(high_pass_frequency, frame_times)
assert_almost_equal(spm_drifts[:, 1:], nistats_drifts[:, :-2])
# nistats_drifts is placing the constant at the end [:, : - 1]
nilearn_drifts = create_cosine_drift(high_pass_frequency, frame_times)
assert_almost_equal(spm_drifts[:, 1:], nilearn_drifts[:, :-2])
# nilearn_drifts is placing the constant at the end [:, : - 1]


def test_design_matrix_no_experimental_paradigm(frame_times):
Expand Down Expand Up @@ -432,7 +432,7 @@ def test_csv_io(tmp_path, frame_times):
"block_duration, array", [(1, "arr_0"), (10, "arr_1")]
)
def test_compare_design_matrix_to_spm(block_duration, array):
# Check that the nistats design matrix is close enough to the SPM one
# Check that the nilearn design matrix is close enough to the SPM one
# (it cannot be identical, because the hrf shape is different)
events, frame_times = spm_paradigm(block_duration=block_duration)
X1 = make_first_level_design_matrix(frame_times, events, drift_model=None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
The functions represent feature comprehensive examples
to visualize, inspect, and test the functionality
of nistats.reporting.make_glm_reports().
of nilearn.reporting.make_glm_reports().
Disable any of the function calls in the __main__()
to run a specific script and save time.
Expand Down

0 comments on commit 6e125cf

Please sign in to comment.