Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
toftul committed May 24, 2023
1 parent a796fdf commit b801977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mielib/mieacoustics.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def acoustics_pressure_cross_section(k, a, rho_rel, beta_rel, nmin=0, nmax=50, n
sigma_pr_n = np.zeros([nmax, ka.size])

for n in range(nmin, nmax):
an = mielib.acoustics_mie_a(n, ka, rho_rel, beta_rel)
an_plus1 = mielib.acoustics_mie_a(n+1, ka, rho_rel, beta_rel)
an = acoustics_mie_a(n, ka, rho_rel, beta_rel)
an_plus1 = acoustics_mie_a(n+1, ka, rho_rel, beta_rel)
if n == nmax-1:
# to ensure that pressure cross section is always positive
sigma_pr_n[n, :] = -4*np.pi / k**2 * (2*n+1) * np.real(an)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mielib"
version = "0.1.11"
version = "0.1.12"
description = "Python library with many Mie-related functions for optics and acoustics"
authors = ["Ivan Toftul <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit b801977

Please sign in to comment.