Skip to content

Commit

Permalink
remove initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Aug 5, 2024
1 parent 62e203c commit 32cf965
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions elaston/green.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def A(self):
"""First coefficient of the Green's function. For more, cf. DocString in the class level."""
return (3 - 4 * self.poissons_ratio) * self.B

# Rewrite B using cached_property
@cached_property
def B(self):
"""Second coefficient of the Green's function. For more, cf. DocString in the class level."""
Expand Down Expand Up @@ -354,7 +353,6 @@ def _get_greens_function(self, r, derivative=0, fourier=False):
"ijkl,...j,...l->...ik", self.C, self.r, self.r, optimize=self.optimize
)
return np.linalg.inv(G)
self._initialize()
if derivative == 0:
M = np.einsum("n...ij->...ij", self.Ms) * self.dphi / (4 * np.pi**2)
return np.einsum("...ij,...->...ij", M, 1 / np.linalg.norm(self.r, axis=-1))
Expand Down

0 comments on commit 32cf965

Please sign in to comment.