Skip to content

Commit

Permalink
minor changes removing redundant lines from rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngodber committed Feb 4, 2022
1 parent 66aa981 commit 9f2d275
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions SimPEG/electromagnetics/static/resistivity/sources.py
Expand Up @@ -4,8 +4,6 @@
from .... import survey
from ....utils import Zero

import warnings


class BaseSrc(survey.BaseSrc):
"""
Expand Down Expand Up @@ -51,7 +49,7 @@ def eval(self, sim):
return self._q
else:
if sim._formulation == "HJ":
inds = sim.mesh.get_nearest_indices(self.location, grid_location="CC")
inds = sim.mesh.closest_points_index(self.location, grid_loc="CC")
self._q = np.zeros(sim.mesh.nC)
self._q[inds] = self.current
elif sim._formulation == "EB":
Expand Down Expand Up @@ -97,9 +95,6 @@ class Dipole(BaseSrc):
"location of the source electrodes",
survey.SourceLocationArray("location of electrode"),
)
loc = deprecate_property(
location, "loc", new_name="location", removal_version="0.16.0", error=True
)

def __init__(
self,
Expand Down

0 comments on commit 9f2d275

Please sign in to comment.