Skip to content

Commit

Permalink
add van Buren prolate spheroidal import
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinmacaulay committed Sep 4, 2024
1 parent e6f9b6b commit bed97d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/echosms/psmsmodel.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
"""A class that provides the prolate spheroidal modal series scattering model."""

import numpy as np
# from mapply.mapply import mapply
# import swifter
from scipy.special import pro_ang1, pro_rad1, pro_rad2
from scipy.integrate import quad
from .scattermodelbase import ScatterModelBase

from .utils import prolate_swf

class PSMSModel(ScatterModelBase):
"""Prolate spheroidal modal series (PSMS) scattering model."""
Expand Down Expand Up @@ -126,6 +123,7 @@ def calculate_ts_single(self, medium_c, medium_rho, a, b, theta, f, boundary_typ
if (even and even_reached_tol) or (not even and odd_reached_tol):
continue

# call prolate_swf() here
s_bs = pro_ang1(m, n, h0, np.cos(theta))[0]
s_inc = pro_ang1(m, n, h0, np.cos(np.pi - theta))[0]
# print(m,n,h0)
Expand Down

0 comments on commit bed97d6

Please sign in to comment.