diff --git a/pydfc/dfc_utils.py b/pydfc/dfc_utils.py index c22e548..2e9ab73 100644 --- a/pydfc/dfc_utils.py +++ b/pydfc/dfc_utils.py @@ -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: diff --git a/pydfc/task_utils.py b/pydfc/task_utils.py index 4970e00..daaf95e 100644 --- a/pydfc/task_utils.py +++ b/pydfc/task_utils.py @@ -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) diff --git a/task_dFC/dFC_assessment.py b/task_dFC/dFC_assessment.py index 47c5f22..a381f95 100644 --- a/task_dFC/dFC_assessment.py +++ b/task_dFC/dFC_assessment.py @@ -1,7 +1,6 @@ import os import time import warnings -from calendar import c import numpy as np