Skip to content

Commit

Permalink
removed deprecated MEG class (#422)
Browse files Browse the repository at this point in the history
* removed deprecated MEG class

* lint
  • Loading branch information
espenhgn committed Apr 13, 2022
1 parent 6db2d13 commit 86179bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
9 changes: 7 additions & 2 deletions LFPy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@
four-sphere head model (brain, CSF, skull, scalp)
* ``InfiniteVolumeConductor`` - To compute extracellular potentials with
current dipoles in infinite volume conductor
* ``MEG`` - Class for computing magnetic field from current dipole moment
* ``InfiniteHomogeneousVolCondMEG`` - Class for computing magnetic field from
current dipole moment assuming an infinite homogeneous volume conductor
* ``SphericallySymmetricVolCondMEG`` - Class for computing magnetic field
from current dipole moment assuming a spherically symmetric volume
conductor
:Modules:
* ``lfpcalc`` - Misc. functions used by RecExtElectrode class
* ``tools`` - Some convenient functions
Expand All @@ -68,7 +73,7 @@
from .network import NetworkCell, NetworkPopulation, Network
from .test import _test as run_tests
from .eegmegcalc import FourSphereVolumeConductor, InfiniteVolumeConductor, \
MEG, InfiniteHomogeneousVolCondMEG, SphericallySymmetricVolCondMEG, \
InfiniteHomogeneousVolCondMEG, SphericallySymmetricVolCondMEG, \
NYHeadModel
from lfpykit import lfpcalc
from . import tools
Expand Down
11 changes: 0 additions & 11 deletions LFPy/eegmegcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,17 +274,6 @@ def get_multi_dipole_potential(self, cell,
return potentials


class MEG(lfpykit.eegmegcalc.InfiniteHomogeneousVolCondMEG):
def __init__(self, sensor_locations, mu=4 * np.pi * 1E-7):
warn(
"class MEG is deprecated and will be removed. Use "
"InfiniteHomogeneousVolCondMEG or SphericallySymmetricVolCondMEG "
"instead",
DeprecationWarning, 2
)
super().__init__(sensor_locations, mu)


class InfiniteHomogeneousVolCondMEG(
lfpykit.eegmegcalc.InfiniteHomogeneousVolCondMEG):
"""
Expand Down

0 comments on commit 86179bd

Please sign in to comment.