How to use the braindecode.datautil.trial_segment._create_cnt_y_and_trial_bounds_from_start_stop function in braindecode

To help you get started, we’ve selected a few braindecode examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TNTLFreiburg / braindecode / test / unit_tests / datautil / test_trial_segment.py View on Github external
def check_cnt_y_start_stop_samples(n_samples, events, fs, epoch_ival_ms,
                                   name_to_start_codes,
                                   name_to_stop_codes, cnt_y, start_stop):

    cnt_y = np.array(cnt_y).T
    real_cnt_y, real_start_stop = _create_cnt_y_and_trial_bounds_from_start_stop(
        n_samples, events ,fs, name_to_start_codes, epoch_ival_ms,
        name_to_stop_codes)
    np.testing.assert_array_equal(cnt_y, real_cnt_y)
    np.testing.assert_array_equal(start_stop, real_start_stop)