Skip to content

Commit

Permalink
Merge pull request #43 from SFB-ELAINE/fix_typo_in_electrode
Browse files Browse the repository at this point in the history
Fix typo in electrode
  • Loading branch information
Kinway25 authored Jul 7, 2024
2 parents de29e10 + 9abeee1 commit 16a3ce0
Show file tree
Hide file tree
Showing 29 changed files with 138 additions and 28 deletions.
2 changes: 1 addition & 1 deletion ossdbs/electrodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"DixiSEEG10Custom": DixiSEEGModel,
"DixiSEEG12Custom": DixiSEEGModel,
"DixiSEEG15Custom": DixiSEEGModel,
"DixiSEEG158ustom": DixiSEEGModel,
"DixiSEEG18Custom": DixiSEEGModel,
"Medtronic3387Custom": MedtronicModel,
"Medtronic3389Custom": MedtronicModel,
"Medtronic3391Custom": MedtronicModel,
Expand Down
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_abbottstjudeactivetip6142_6145.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import AbbottStJudeActiveTip6142_6145
from ossdbs.electrodes import ELECTRODE_MODELS, AbbottStJudeActiveTip6142_6145

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_abbottstjudeactivetip6146_6149.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import AbbottStJudeActiveTip6146_6149
from ossdbs.electrodes import ELECTRODE_MODELS, AbbottStJudeActiveTip6146_6149

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_abbottstjudedirected6172.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import AbbottStJudeDirected6172
from ossdbs.electrodes import ELECTRODE_MODELS, AbbottStJudeDirected6172

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_abbottstjudedirected6173.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import AbbottStJudeDirected6173
from ossdbs.electrodes import ELECTRODE_MODELS, AbbottStJudeDirected6173

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_bostonscientificcartesiahx.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import BostonScientificCartesiaHX
from ossdbs.electrodes import ELECTRODE_MODELS, BostonScientificCartesiaHX

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_bostonscientificcartesiax.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import BostonScientificCartesiaX
from ossdbs.electrodes import ELECTRODE_MODELS, BostonScientificCartesiaX

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_bostonscientificvercise.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import BostonScientificVercise
from ossdbs.electrodes import ELECTRODE_MODELS, BostonScientificVercise

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import BostonScientificVerciseDirected
from ossdbs.electrodes import ELECTRODE_MODELS, BostonScientificVerciseDirected

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_diximicrotechniquesSEEG10.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import DixiSEEG10
from ossdbs.electrodes import ELECTRODE_MODELS, DixiSEEG10

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_diximicrotechniquesSEEG12.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import DixiSEEG12
from ossdbs.electrodes import ELECTRODE_MODELS, DixiSEEG12

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_diximicrotechniquesSEEG15.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import DixiSEEG15
from ossdbs.electrodes import ELECTRODE_MODELS, DixiSEEG15

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_diximicrotechniquesSEEG18.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import DixiSEEG18
from ossdbs.electrodes import ELECTRODE_MODELS, DixiSEEG18

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_diximicrotechniquesSEEG5.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import DixiSEEG5
from ossdbs.electrodes import ELECTRODE_MODELS, DixiSEEG5

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_diximicrotechniquesSEEG8.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import DixiSEEG8
from ossdbs.electrodes import ELECTRODE_MODELS, DixiSEEG8

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
2 changes: 2 additions & 0 deletions tests/electrode_tests/test_electrodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import numpy as np


# TODO is there a nicer way to not need to copy-paste
# the tests into each electrode file?
class TestElectrode:
"""Class for testing electrodes."""

Expand Down
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_medtronic3387.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import Medtronic3387
from ossdbs.electrodes import ELECTRODE_MODELS, Medtronic3387

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_medtronic3389.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import Medtronic3389
from ossdbs.electrodes import ELECTRODE_MODELS, Medtronic3389

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_medtronic3391.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import Medtronic3391
from ossdbs.electrodes import ELECTRODE_MODELS, Medtronic3391

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_medtronicsensightB33005.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import MedtronicSenSightB33005
from ossdbs.electrodes import ELECTRODE_MODELS, MedtronicSenSightB33005

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_medtronicsensightB33015.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import MedtronicSenSightB33015
from ossdbs.electrodes import ELECTRODE_MODELS, MedtronicSenSightB33015

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_microelectrode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import MicroElectrode
from ossdbs.electrodes import ELECTRODE_MODELS, MicroElectrode

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_microprobescustomrodent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import MicroProbesRodentElectrode
from ossdbs.electrodes import ELECTRODE_MODELS, MicroProbesRodentElectrode

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_microprobessnex100.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import MicroProbesSNEX100
from ossdbs.electrodes import ELECTRODE_MODELS, MicroProbesSNEX100

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
6 changes: 5 additions & 1 deletion tests/electrode_tests/test_neuropaceDL344_10.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ossdbs.electrodes import NeuroPaceDL344_10
from ossdbs.electrodes import ELECTRODE_MODELS, NeuroPaceDL344_10

from .test_electrodes import TestElectrode

Expand Down Expand Up @@ -29,3 +29,7 @@ def test_electrode_volume(self, electrode, electrode_name):
def test_contacts_volume(self, electrode, electrode_name):
"""Test volume of all the contacts."""
self.check_contacts_volume(electrode, electrode_name)

def test_custom_exists(self, electrode_name):
customname = electrode_name + "Custom"
assert customname in ELECTRODE_MODELS.keys()
Loading

0 comments on commit 16a3ce0

Please sign in to comment.