Skip to content

Commit

Permalink
Merge pull request #26 from mtorabi59/main
Browse files Browse the repository at this point in the history
minor changes
  • Loading branch information
mtorabi59 authored Apr 3, 2024
2 parents f35996a + 1249d5b commit 344d3f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pydfc/dfc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ def visualize_FCS(
measure, normalize=True, fix_lim=True, save_image=False, output_root=None
):

if measure.FCS == []:
if measure.FCS is []:
return

if normalize:
Expand Down
6 changes: 3 additions & 3 deletions pydfc/task_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def events_time_to_labels(
if events[i, 2] in event_types:
start_time = float(events[i, 0])
end_time = float(events[i, 0]) + float(events[i, 1])
start_TR = int(np.rint(start_time * Fs))
end_TR = int(np.rint(end_time * Fs))
event_labels[start_TR:end_TR] = event_types.index(events[i, 2])
start_timepoint = int(np.rint(start_time * Fs))
end_timepoint = int(np.rint(end_time * Fs))
event_labels[start_timepoint:end_timepoint] = event_types.index(events[i, 2])

if return_0_1:
event_labels = np.multiply(event_labels != 0, 1)
Expand Down
1 change: 0 additions & 1 deletion task_dFC/dFC_assessment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import time
import warnings
from calendar import c

import numpy as np

Expand Down

0 comments on commit 344d3f1

Please sign in to comment.