Skip to content

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Aug 11, 2024
1 parent f13e313 commit 1b410ca
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions bidsmreye/quality_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from bidsmreye.logger import bidsmreye_log
from bidsmreye.report import generate_report
from bidsmreye.utils import (
add_timestamps_to_dataframe,
check_if_file_found,
create_dir_for_file,
progress_bar,
Expand Down Expand Up @@ -162,15 +163,7 @@ def perform_quality_control(
)

if sampling_frequency is not None:
nb_timepoints = confounds.shape[0]
timestamp = np.arange(
0, 1 / sampling_frequency * nb_timepoints, 1 / sampling_frequency
)
confounds["timestamp"] = timestamp

cols = confounds.columns.tolist()
cols.insert(0, cols.pop(cols.index("timestamp")))
confounds = confounds[cols]
confounds = add_timestamps_to_dataframe(confounds, sampling_frequency)

compute_displacement_and_outliers(confounds)

Expand Down

0 comments on commit 1b410ca

Please sign in to comment.