Skip to content

Commit

Permalink
Fix @mscheltienne review
Browse files Browse the repository at this point in the history
  • Loading branch information
vferat committed Sep 12, 2023
1 parent 04865be commit 7d616ce
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 684 deletions.
131 changes: 0 additions & 131 deletions draft.py

This file was deleted.

2 changes: 1 addition & 1 deletion pycrostates/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Cluster(ABC):
pass


class Segmentation(ABC):
class Segmentation(_BaseSegmentation):
"""Typing for a clustering class."""

pass

Check warning on line 35 in pycrostates/_typing.py

View check run for this annotation

Codecov / codecov/patch

pycrostates/_typing.py#L35

Added line #L35 was not covered by tests
Expand Down
5 changes: 2 additions & 3 deletions pycrostates/segmentation/tests/test_entropy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import pytest
from mne import Epochs, make_fixed_length_events
from mne import Epochs, make_fixed_length_epochs
from mne.datasets import testing
from mne.io import read_raw_fif

Expand Down Expand Up @@ -30,8 +30,7 @@
raw = raw.pick("eeg").crop(0, 10)
raw = raw.load_data().filter(1, 40).apply_proj()

events = make_fixed_length_events(raw, 1)
epochs = Epochs(raw, events, preload=True)
epochs = make_fixed_length_epochs(raw, 1, preload=True)

ModK_raw = ModKMeans(n_clusters=4, n_init=10, max_iter=100, tol=1e-4, random_state=1)
ModK_epochs = ModKMeans(n_clusters=4, n_init=10, max_iter=100, tol=1e-4, random_state=1)
Expand Down
Loading

0 comments on commit 7d616ce

Please sign in to comment.