Skip to content

Commit

Permalink
updated default nang parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mlietzow committed Aug 27, 2024
1 parent dfb24f2 commit 8142147
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ result = miex.shexqnn2(x=1.0, m=complex(1.5, 0.0), nang=91, doSA=True)
| ------------- | -------------------------------------------------------- | --------------- |
| `x` | Size parameter | float |
| `m` | Complex refractive index | complex |
| `nang=1` | Half number of scattering angles in the interval [0, 90] | int, optional |
| `nang=2` | Half number of scattering angles in the interval [0, 90] | int, optional |
| `doSA=False` | Calculate scattering amplitude functions | bool, optional |
| `nterm=2e7` | Maximum number of terms to be considered | int, optional |
| `eps=1.0e-20` | Accuracy to be achieved | float, optional |
Expand Down
4 changes: 2 additions & 2 deletions src/miex/miex.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def aa2(ax, ri, num, ru):


@njit(cache=True)
def shexqnn2(x, ri, nang=1, doSA=False, nterm=2e7, eps=1.0e-20, xmin=1.0e-06):
def shexqnn2(x, ri, nang=2, doSA=False, nterm=2e7, eps=1.0e-20, xmin=1.0e-06):
"""Derive quantities for a single size parameter and chemical composition.
This routine is based on the routine 'shexqnn' published by
N.V.Voshchinnikov: 'Optics of Cosmic Dust', Astrophysics and Space Physics Review 12, 1 (2002)
Expand All @@ -86,7 +86,7 @@ def shexqnn2(x, ri, nang=1, doSA=False, nterm=2e7, eps=1.0e-20, xmin=1.0e-06):
ri : complex float
complex refractive index
nang : int, optional, default = 1
nang : int, optional, default = 2
half number of scattering angles theta in the intervall 0...pi/2 (equidistantly distributed)
doSA : bool, optional, default = False
Expand Down

0 comments on commit 8142147

Please sign in to comment.