miepython 3.3.0__py3-none-any.whl → 3.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- miepython/__init__.py +24 -4
- miepython/_convention.py +109 -0
- miepython/core.py +122 -12
- miepython/field.py +71 -31
- miepython/mie_jit.py +31 -19
- miepython/mie_nojit.py +29 -20
- miepython/monte_carlo.py +128 -86
- miepython/rayleigh.py +196 -21
- miepython/vsh.py +21 -6
- {miepython-3.3.0.dist-info → miepython-3.4.0.dist-info}/METADATA +7 -9
- miepython-3.4.0.dist-info/RECORD +19 -0
- {miepython-3.3.0.dist-info → miepython-3.4.0.dist-info}/WHEEL +1 -1
- miepython-3.3.0.dist-info/RECORD +0 -18
- {miepython-3.3.0.dist-info → miepython-3.4.0.dist-info}/licenses/LICENSE.txt +0 -0
- {miepython-3.3.0.dist-info → miepython-3.4.0.dist-info}/top_level.txt +0 -0
miepython/rayleigh.py
CHANGED
|
@@ -1,7 +1,126 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""
|
|
2
|
+
Rayleigh approximation for scattering by spheres much smaller than the wavelength.
|
|
3
|
+
|
|
4
|
+
When a sphere is small both outside (x << 1) and inside (abs(m) * x << 1), the
|
|
5
|
+
incident field is nearly uniform across it, and it radiates as a single
|
|
6
|
+
oscillating electric dipole. Every scattering quantity then follows in closed
|
|
7
|
+
form from the ratio (m**2 - 1) / (m**2 + 2), with no series of multipoles to
|
|
8
|
+
sum. This module evaluates those expressions, following Bohren and Huffman,
|
|
9
|
+
equations 5.4 and 5.7 to 5.9. A perfect conductor also radiates a magnetic
|
|
10
|
+
dipole, and has its own expressions, described below.
|
|
11
|
+
|
|
12
|
+
The functions mirror those of the same names in ``miepython``, with the same
|
|
13
|
+
arguments and the same ``norm`` choices, so one can stand in for the other:
|
|
14
|
+
|
|
15
|
+
``efficiencies_mx(m, x)``, ``efficiencies(m, d, lambda0, n_env)``
|
|
16
|
+
qext, qsca, qback and g.
|
|
17
|
+
``S1_S2(m, x, mu, norm)``
|
|
18
|
+
The scattering amplitudes at each mu = cos(theta).
|
|
19
|
+
``i_par``, ``i_per``, ``i_unpolarized``, ``intensities``
|
|
20
|
+
Scattered intensities at each mu.
|
|
21
|
+
``phase_matrix(m, x, mu, norm)``
|
|
22
|
+
The 4x4 Mueller matrix at each mu.
|
|
23
|
+
|
|
24
|
+
Nothing here takes ``n_pole``, since there is only the dipole.
|
|
25
|
+
|
|
26
|
+
Order of approximation:
|
|
27
|
+
Strictly, Rayleigh scattering is only the leading term in x: an electric
|
|
28
|
+
dipole whose strength is set by the static polarizability. Not every
|
|
29
|
+
expression here stops at that term, so this is better described as a
|
|
30
|
+
small-particle approximation.
|
|
31
|
+
|
|
32
|
+
- qsca and qback are the leading terms, 8/3 x**4 abs(ratio)**2 and
|
|
33
|
+
4 x**4 abs(ratio)**2.
|
|
34
|
+
- qext carries Bohren and Huffman's next-order correction. Its absorption
|
|
35
|
+
term includes a relative x**2 correction, the order at which the
|
|
36
|
+
magnetic dipole and the electric quadrupole first contribute (the
|
|
37
|
+
2 m**2 + 3 in its denominator is the quadrupole's), and scattering is
|
|
38
|
+
added as 8/3 x**4 Re(ratio**2).
|
|
39
|
+
- ``S1_S2`` gives the electric dipole its own relative x**2 correction, the
|
|
40
|
+
x**5 term, but leaves out the magnetic dipole and quadrupole. The angular
|
|
41
|
+
pattern is therefore exactly that of a dipole, and g is 0.
|
|
42
|
+
- A perfect conductor gets only the leading terms of its electric and
|
|
43
|
+
magnetic dipoles.
|
|
44
|
+
|
|
45
|
+
The corrections are not applied evenly, so a dielectric's qext is more
|
|
46
|
+
accurate than its qsca. ``miepython`` itself goes further for x < 0.1,
|
|
47
|
+
using Wiscombe's expansions, which keep the electric dipole, the magnetic
|
|
48
|
+
dipole and the electric quadrupole, each with its own corrections.
|
|
49
|
+
|
|
50
|
+
Accuracy:
|
|
51
|
+
Relative error in qext against the full Mie solution:
|
|
52
|
+
|
|
53
|
+
================= ========= ======== ========
|
|
54
|
+
m x = 0.01 x = 0.1 x = 0.5
|
|
55
|
+
================= ========= ======== ========
|
|
56
|
+
1.5 -7e-6 -7e-4 -1e-2
|
|
57
|
+
1.5 - 0.1j 8e-10 6e-6 4e-3
|
|
58
|
+
0.05 - 1.43j 2e-6 2e-2 14
|
|
59
|
+
-1j (conductor) -2e-5 -2e-3 -4e-2
|
|
60
|
+
================= ========= ======== ========
|
|
61
|
+
|
|
62
|
+
The last row is a silver-like sphere near its plasmon resonance, where
|
|
63
|
+
m**2 is close to -2 and the denominator of the ratio nearly vanishes. There
|
|
64
|
+
the approximation fails at much smaller x than for an ordinary dielectric.
|
|
65
|
+
|
|
66
|
+
For a dielectric the asymmetry parameter g is 0, because dipole scattering
|
|
67
|
+
is the same forwards and backwards. The Mie value is 0.002 at x = 0.1 and
|
|
68
|
+
0.05 at x = 0.5 for m = 1.5.
|
|
69
|
+
|
|
70
|
+
Conventions:
|
|
71
|
+
The index is m = n - ik, as in the rest of the package, and an index with a
|
|
72
|
+
positive imaginary part is conjugated. The inputs that ``miepython``
|
|
73
|
+
rejects, a NaN or infinite m or x, a negative x or a negative real part of
|
|
74
|
+
m, raise the same ``ValueError`` here. The efficiencies accept an array of
|
|
75
|
+
m or x and return arrays, g included. The angular functions describe one
|
|
76
|
+
sphere and vectorize over mu only.
|
|
77
|
+
|
|
78
|
+
Perfect conductors:
|
|
79
|
+
As in the rest of the package, m.real == 0 means a perfect conductor,
|
|
80
|
+
whatever the imaginary part, and m = 0 is one too. No field enters such a
|
|
81
|
+
sphere, so the dielectric expressions, which describe the field inside,
|
|
82
|
+
do not apply. Instead the surface currents radiate an electric dipole and
|
|
83
|
+
a magnetic dipole half as strong and opposite in sign, a1 = 2i x**3/3 and
|
|
84
|
+
b1 = -a1/2. The sphere absorbs nothing, qext = qsca = 10/3 x**4, and
|
|
85
|
+
qback = 9 x**4. The two dipoles add backwards and partly cancel forwards,
|
|
86
|
+
so g = -2/5 and the backscattered intensity is nine times the forward one.
|
|
87
|
+
|
|
88
|
+
Examples:
|
|
89
|
+
A small absorbing sphere, compared with the full Mie solution:
|
|
90
|
+
|
|
91
|
+
>>> import numpy as np
|
|
92
|
+
>>> import miepython as mie
|
|
93
|
+
>>> from miepython import rayleigh
|
|
94
|
+
>>> qext, qsca, qback, g = rayleigh.efficiencies_mx(1.5 - 0.1j, 0.1)
|
|
95
|
+
>>> print(f"{qext:.5f} {qsca:.6f} {g:.4f}")
|
|
96
|
+
0.02006 0.000024 0.0000
|
|
97
|
+
>>> qext, qsca, qback, g = mie.efficiencies_mx(1.5 - 0.1j, 0.1)
|
|
98
|
+
>>> print(f"{qext:.5f} {qsca:.6f} {g:.4f}")
|
|
99
|
+
0.02006 0.000024 0.0020
|
|
100
|
+
|
|
101
|
+
The dipole pattern scatters equally forwards and backwards, and half as
|
|
102
|
+
much at 90 degrees:
|
|
103
|
+
|
|
104
|
+
>>> mu = np.array([-1.0, 0.0, 1.0])
|
|
105
|
+
>>> print(np.round(rayleigh.i_unpolarized(1.5, 0.1, mu), 4))
|
|
106
|
+
[0.1195 0.0597 0.1195]
|
|
107
|
+
>>> print(np.round(mie.i_unpolarized(1.5, 0.1, mu), 4))
|
|
108
|
+
[0.1188 0.0597 0.1199]
|
|
109
|
+
|
|
110
|
+
A perfect conductor scatters mostly backwards:
|
|
111
|
+
|
|
112
|
+
>>> qext, qsca, qback, g = rayleigh.efficiencies_mx(-1j, 0.1)
|
|
113
|
+
>>> print(f"{qsca:.4e} {qback:.4e} {g:.4f}")
|
|
114
|
+
3.3333e-04 9.0000e-04 -0.4000
|
|
115
|
+
>>> qext, qsca, qback, g = mie.efficiencies_mx(-1j, 0.1)
|
|
116
|
+
>>> print(f"{qsca:.4e} {qback:.4e} {g:.4f}")
|
|
117
|
+
3.3413e-04 8.9834e-04 -0.3973
|
|
118
|
+
"""
|
|
2
119
|
|
|
3
120
|
import numpy as np
|
|
4
121
|
|
|
122
|
+
from ._convention import _convert
|
|
123
|
+
from .core import _check_m_x, _check_one_sphere
|
|
5
124
|
from .core import normalization_factor as core_normalization_factor
|
|
6
125
|
|
|
7
126
|
__all__ = (
|
|
@@ -20,7 +139,9 @@ def efficiencies_mx(m, x):
|
|
|
20
139
|
"""
|
|
21
140
|
Calculate the efficiencies for a small sphere.
|
|
22
141
|
|
|
23
|
-
Based on equations 5.7 - 5.9 in Bohren and Huffman
|
|
142
|
+
Based on equations 5.7 - 5.9 in Bohren and Huffman. A perfect conductor,
|
|
143
|
+
m.real == 0, uses the electric and magnetic dipoles instead; the module
|
|
144
|
+
docstring gives the details.
|
|
24
145
|
|
|
25
146
|
Args:
|
|
26
147
|
m: the complex index of refraction of the sphere
|
|
@@ -30,14 +151,47 @@ def efficiencies_mx(m, x):
|
|
|
30
151
|
qext: the total extinction efficiency
|
|
31
152
|
qsca: the scattering efficiency
|
|
32
153
|
qback: the backscatter efficiency
|
|
33
|
-
g: the average cosine of the scattering phase function
|
|
154
|
+
g: the average cosine of the scattering phase function, 0 for a dielectric, -0.4 for a conductor
|
|
155
|
+
|
|
156
|
+
Raises:
|
|
157
|
+
ValueError: if m or x is not finite, x is negative, or the real part of
|
|
158
|
+
m is negative, exactly as for the full Mie functions
|
|
34
159
|
"""
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
160
|
+
_check_m_x(m, x)
|
|
161
|
+
if not np.isscalar(x):
|
|
162
|
+
x = np.asarray(x, dtype=float)
|
|
163
|
+
if np.ndim(m) > 0 and np.ndim(x) > 0 and np.size(m) != np.size(x):
|
|
164
|
+
raise RuntimeError("m and x arrays to mie must be same length")
|
|
165
|
+
|
|
166
|
+
# ensure imaginary part of refractive index is negative, as core.py does
|
|
167
|
+
if np.isscalar(m):
|
|
168
|
+
m = np.conj(m) if np.imag(m) > 0 else m
|
|
169
|
+
else:
|
|
170
|
+
m = np.where(np.imag(m) > 0, np.conj(m), m)
|
|
171
|
+
|
|
172
|
+
# the dielectric expressions are evaluated for every entry and then replaced
|
|
173
|
+
# where m is a conductor; a few conductor indices, m = -1j*sqrt(2) and
|
|
174
|
+
# m = -1j*sqrt(1.5), make their denominators vanish, so silence the warnings
|
|
175
|
+
with np.errstate(divide="ignore", invalid="ignore"):
|
|
176
|
+
ratio = (m**2 - 1) / (m**2 + 2)
|
|
177
|
+
qsca = 8 / 3 * x**4 * abs(ratio) ** 2
|
|
178
|
+
# Bohren & Huffman write m = n + ik, so with m = n - ik the absorption term
|
|
179
|
+
# changes sign. The x**4 term is Re(ratio**2), not |ratio|**2: the two only
|
|
180
|
+
# agree for a non-absorbing sphere, and the difference matters near resonance.
|
|
181
|
+
qabs = -4 * x * (ratio * (1 + x**2 / 15 * ratio * (m**4 + 27 * m**2 + 38) / (2 * m**2 + 3))).imag
|
|
182
|
+
qext = qabs + 8 / 3 * x**4 * (ratio**2).real
|
|
183
|
+
qback = 4 * x**4 * abs(ratio) ** 2
|
|
184
|
+
|
|
185
|
+
# A perfect conductor (m.real == 0) radiates a magnetic dipole half as strong
|
|
186
|
+
# as, and opposite to, its electric one: a1 = 2i x**3/3 and b1 = -a1/2. It
|
|
187
|
+
# absorbs nothing, scatters 6/x**2 (|a1|**2 + |b1|**2) = 10/3 x**4, and the
|
|
188
|
+
# interference of the two dipoles throws light backwards, so g = -2/5.
|
|
189
|
+
conductor = np.real(m) == 0
|
|
190
|
+
qsca = np.where(conductor, 10 / 3 * x**4, qsca)[()]
|
|
191
|
+
qext = np.where(conductor, 10 / 3 * x**4, qext)[()]
|
|
192
|
+
qback = np.where(conductor, 9 * x**4, qback)[()]
|
|
193
|
+
# a dielectric's electric dipole alone scatters symmetrically fore and aft
|
|
194
|
+
g = np.where(conductor, -0.4, 0 * qsca)[()]
|
|
41
195
|
return qext, qsca, qback, g
|
|
42
196
|
|
|
43
197
|
|
|
@@ -84,37 +238,60 @@ def S1_S2(m, x, mu, norm="albedo"):
|
|
|
84
238
|
"""
|
|
85
239
|
Calculate the scattering amplitude functions for small spheres.
|
|
86
240
|
|
|
87
|
-
Based on equation 5.4 in Bohren and Huffman
|
|
241
|
+
Based on equation 5.4 in Bohren and Huffman. A perfect conductor,
|
|
242
|
+
m.real == 0, adds the magnetic dipole b1 = -a1/2 to its electric one.
|
|
88
243
|
|
|
89
|
-
|
|
90
|
-
over all 4*pi solid angles
|
|
244
|
+
With the default ``norm='albedo'`` the unpolarized intensity
|
|
245
|
+
``(abs(S1)**2 + abs(S2)**2)/2`` integrated over all 4*pi solid angles equals the
|
|
246
|
+
single-scattering albedo qsca/qext.
|
|
91
247
|
|
|
92
248
|
The units are weird, sr**(-0.5)
|
|
93
249
|
|
|
94
250
|
Args:
|
|
95
251
|
m: the complex index of refraction of the sphere
|
|
96
252
|
x: the size parameter of the sphere
|
|
97
|
-
mu: the angles, cos(theta), to calculate scattering amplitudes
|
|
253
|
+
mu: the angles, cos(theta), to calculate scattering amplitudes. A scalar
|
|
254
|
+
is treated as one angle and yields a length-one array.
|
|
98
255
|
norm: (optional) string describing scattering function normalization
|
|
99
256
|
|
|
100
257
|
Returns:
|
|
101
|
-
S1, S2:
|
|
258
|
+
S1, S2: length-one or longer arrays of scattering amplitudes at each
|
|
259
|
+
angle mu [sr**(-0.5)], in the active time convention, as for
|
|
260
|
+
``miepython.S1_S2``
|
|
261
|
+
|
|
262
|
+
Raises:
|
|
263
|
+
ValueError: if m or x is not finite, x is negative, or the real part of
|
|
264
|
+
m is negative, exactly as for the full Mie functions, or if m or x
|
|
265
|
+
is an array, since this describes one sphere
|
|
102
266
|
"""
|
|
267
|
+
_check_m_x(m, x)
|
|
268
|
+
_check_one_sphere(m, x)
|
|
269
|
+
mu = np.atleast_1d(np.asarray(mu, dtype=float))
|
|
103
270
|
if np.imag(m) > 0: # ensure imaginary part of refractive index is negative
|
|
104
271
|
m = np.conj(m)
|
|
105
272
|
|
|
106
|
-
|
|
107
|
-
|
|
273
|
+
if np.real(m) == 0:
|
|
274
|
+
# perfect conductor: an electric dipole and a magnetic one, b1 = -a1/2
|
|
275
|
+
a1 = 2j * x**3 / 3
|
|
276
|
+
b1 = -a1 / 2
|
|
277
|
+
else:
|
|
278
|
+
a1 = (2 * x**3) / 3 * (m**2 - 1) / (m**2 + 2) * 1j
|
|
279
|
+
a1 += (2 * x**5) / 5 * (m**2 - 2) * (m**2 - 1) / (m**2 + 2) ** 2 * 1j
|
|
280
|
+
b1 = 0
|
|
108
281
|
|
|
109
|
-
|
|
110
|
-
|
|
282
|
+
# the n = 1 terms of the Mie series, where pi_1 = 1 and tau_1 = mu
|
|
283
|
+
S1 = (3 / 2) * (a1 * np.ones_like(mu) + b1 * mu)
|
|
284
|
+
S2 = (3 / 2) * (a1 * mu + b1 * np.ones_like(mu))
|
|
111
285
|
|
|
112
286
|
normalization = normalization_factor(m, x, norm)
|
|
113
287
|
|
|
114
288
|
S1 /= normalization
|
|
115
289
|
S2 /= normalization
|
|
116
290
|
|
|
117
|
-
|
|
291
|
+
# a1 above is written for m = n - ik in exp(+jωt), so these amplitudes are
|
|
292
|
+
# exp(+jωt) already; conjugate to the internal exp(-iωt) and then convert to
|
|
293
|
+
# whichever convention is active, exactly as core.S1_S2 does
|
|
294
|
+
return _convert(np.conjugate(S1)), _convert(np.conjugate(S2))
|
|
118
295
|
|
|
119
296
|
|
|
120
297
|
def i_per(m, x, mu, norm="albedo"):
|
|
@@ -205,7 +382,6 @@ def intensities(m, d, lambda0, mu, n_env=1.0, norm="albedo"):
|
|
|
205
382
|
mu: the cos(theta) of each direction desired [-]
|
|
206
383
|
n_env: real index of medium around sphere, optional.
|
|
207
384
|
norm: (optional) string describing scattering function normalization
|
|
208
|
-
n_pole: return n_pole term from series (default=0 means include all terms)
|
|
209
385
|
|
|
210
386
|
Returns:
|
|
211
387
|
ipar, iper: scattered intensity in parallel and perpendicular planes [1/sr]
|
|
@@ -237,7 +413,6 @@ def phase_matrix(m, x, mu, norm="albedo"):
|
|
|
237
413
|
m: the complex index of refraction of the sphere
|
|
238
414
|
x: the size parameter of the sphere
|
|
239
415
|
mu: the angles, cos(theta), of the phase scattering matrix
|
|
240
|
-
n_pole: return n_pole term from series (default=0 means include all terms)
|
|
241
416
|
norm: (optional) string describing scattering function normalization
|
|
242
417
|
|
|
243
418
|
Returns:
|
miepython/vsh.py
CHANGED
|
@@ -24,8 +24,12 @@ Bessel Function Selection:
|
|
|
24
24
|
- For points inside the sphere (r < d_sphere/2), the regular spherical
|
|
25
25
|
Bessel functions (``spherical_jn``) are used.
|
|
26
26
|
- For points outside the sphere (r >= d_sphere/2), the spherical Hankel
|
|
27
|
-
|
|
28
|
-
the
|
|
27
|
+
function that radiates outward in the active time convention is used:
|
|
28
|
+
the second kind (``spherical_h2``) for the default exp(+jωt), the first
|
|
29
|
+
kind (``spherical_h1``) inside ``miepython.time_convention("-")``.
|
|
30
|
+
|
|
31
|
+
``m_index`` is used exactly as given, so pass an absorbing index in the form
|
|
32
|
+
that matches the active convention: n - ik for exp(+jωt), n + ik for exp(-iωt).
|
|
29
33
|
|
|
30
34
|
Functions:
|
|
31
35
|
|
|
@@ -63,7 +67,8 @@ Additional Utility Functions:
|
|
|
63
67
|
|
|
64
68
|
import numpy as np
|
|
65
69
|
from scipy.special import spherical_jn, lpmv, factorial2
|
|
66
|
-
from .bessel import spherical_h1, d_riccati_bessel_h1
|
|
70
|
+
from .bessel import spherical_h1, spherical_h2, d_riccati_bessel_h1, d_riccati_bessel_h2
|
|
71
|
+
from ._convention import get_time_convention
|
|
67
72
|
from ._backend import D_calc
|
|
68
73
|
|
|
69
74
|
__all__ = (
|
|
@@ -138,6 +143,16 @@ def mie_tau(n, theta, deg=False):
|
|
|
138
143
|
return ((n + 1) * x * lpmv(1, n, x) - n * lpmv(1, n + 1, x)) / np.sqrt(1 - x * x)
|
|
139
144
|
|
|
140
145
|
|
|
146
|
+
def _outgoing_h(n, rho):
|
|
147
|
+
"""Spherical Hankel function of an outgoing wave in the active time convention."""
|
|
148
|
+
return spherical_h2(n, rho) if get_time_convention() == "+" else spherical_h1(n, rho)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
def _outgoing_d_riccati_h(n, rho):
|
|
152
|
+
"""Derivative of the outgoing Riccati-Hankel function in the active time convention."""
|
|
153
|
+
return d_riccati_bessel_h2(n, rho) if get_time_convention() == "+" else d_riccati_bessel_h1(n, rho)
|
|
154
|
+
|
|
155
|
+
|
|
141
156
|
def M_base(n, rho, theta, inside):
|
|
142
157
|
"""
|
|
143
158
|
Compute the non-phi part of magnetic vector spherical harmonic (m=1).
|
|
@@ -154,7 +169,7 @@ def M_base(n, rho, theta, inside):
|
|
|
154
169
|
if inside:
|
|
155
170
|
factor = spherical_jn(n, rho)
|
|
156
171
|
else:
|
|
157
|
-
factor =
|
|
172
|
+
factor = _outgoing_h(n, rho)
|
|
158
173
|
|
|
159
174
|
M_r = 0
|
|
160
175
|
M_theta = mie_pi(n, theta) * factor
|
|
@@ -325,8 +340,8 @@ def N_base(n, m_index, kr, theta, inside):
|
|
|
325
340
|
factor2 = factor1 * Dn
|
|
326
341
|
factor1 /= rho
|
|
327
342
|
else:
|
|
328
|
-
factor1 =
|
|
329
|
-
factor2 =
|
|
343
|
+
factor1 = _outgoing_h(n, rho) / rho
|
|
344
|
+
factor2 = _outgoing_d_riccati_h(n, rho) / rho
|
|
330
345
|
|
|
331
346
|
N_r = n * (n + 1) * np.sin(theta) * mie_pi(n, theta) * factor1
|
|
332
347
|
N_theta = mie_tau(n, theta) * factor2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: miepython
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.0
|
|
4
4
|
Summary: Mie scattering of a plane wave by a sphere
|
|
5
5
|
Author-email: Scott Prahl <scott.prahl@oit.edu>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -14,16 +14,15 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
14
14
|
Classifier: Intended Audience :: Science/Research
|
|
15
15
|
Classifier: Programming Language :: Python
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
-
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
22
|
+
Requires-Python: >=3.11
|
|
23
23
|
Description-Content-Type: text/x-rst
|
|
24
24
|
License-File: LICENSE.txt
|
|
25
25
|
Requires-Dist: numpy
|
|
26
|
-
Requires-Dist: matplotlib
|
|
27
26
|
Requires-Dist: scipy
|
|
28
27
|
Requires-Dist: numba; sys_platform != "emscripten"
|
|
29
28
|
Provides-Extra: docs
|
|
@@ -35,8 +34,8 @@ Requires-Dist: sphinx_rtd_theme; extra == "docs"
|
|
|
35
34
|
Provides-Extra: dev
|
|
36
35
|
Requires-Dist: pytest; extra == "dev"
|
|
37
36
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
38
|
-
Requires-Dist: imageio; extra == "dev"
|
|
39
37
|
Requires-Dist: requests; extra == "dev"
|
|
38
|
+
Requires-Dist: matplotlib; extra == "dev"
|
|
40
39
|
Requires-Dist: ruff; extra == "dev"
|
|
41
40
|
Requires-Dist: yamllint; extra == "dev"
|
|
42
41
|
Requires-Dist: rstcheck[sphinx,toml]; extra == "dev"
|
|
@@ -45,14 +44,13 @@ Requires-Dist: pyroma; extra == "dev"
|
|
|
45
44
|
Requires-Dist: black[jupyter]; extra == "dev"
|
|
46
45
|
Requires-Dist: build; extra == "dev"
|
|
47
46
|
Requires-Dist: check-manifest; extra == "dev"
|
|
48
|
-
Requires-Dist: libarchive-c; extra == "dev"
|
|
49
47
|
Requires-Dist: pyyaml; extra == "dev"
|
|
50
|
-
Requires-Dist: setuptools; extra == "dev"
|
|
51
48
|
Requires-Dist: jupyterlab; extra == "dev"
|
|
52
49
|
Requires-Dist: nbconvert; extra == "dev"
|
|
53
50
|
Requires-Dist: nbformat; extra == "dev"
|
|
54
51
|
Provides-Extra: lite
|
|
55
52
|
Requires-Dist: jupyterlite-core<0.8,>=0.7; extra == "lite"
|
|
53
|
+
Requires-Dist: libarchive-c; extra == "lite"
|
|
56
54
|
Requires-Dist: jupyterlite-pyodide-kernel<0.8,>=0.7; extra == "lite"
|
|
57
55
|
Dynamic: license-file
|
|
58
56
|
|
|
@@ -211,7 +209,7 @@ Citation
|
|
|
211
209
|
|
|
212
210
|
If you use ``miepython`` in academic, instructional, or applied technical work, please cite:
|
|
213
211
|
|
|
214
|
-
Prahl, S. (2026). *miepython: Pure python calculation of Mie scattering* (Version 3.
|
|
212
|
+
Prahl, S. (2026). *miepython: Pure python calculation of Mie scattering* (Version 3.3.1) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.7949263
|
|
215
213
|
|
|
216
214
|
BibTeX:
|
|
217
215
|
|
|
@@ -223,7 +221,7 @@ BibTeX:
|
|
|
223
221
|
url = {https://github.com/scottprahl/miepython},
|
|
224
222
|
doi = {10.5281/zenodo.7949263},
|
|
225
223
|
year = {2026},
|
|
226
|
-
version = {3.
|
|
224
|
+
version = {3.3.1},
|
|
227
225
|
publisher = {Zenodo}
|
|
228
226
|
}
|
|
229
227
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
miepython/__init__.py,sha256=0d0ItbVQ1dtbqgRIyotHkQ0mjDxCl_UjY8YbDlVRJeo,6690
|
|
2
|
+
miepython/_backend.py,sha256=l_faAa6zanygRZKA9vMVcfcutHPFFkpqZzHqwjU8QcE,1619
|
|
3
|
+
miepython/_convention.py,sha256=b_Y0Y2Vg5OUKWse8zNs5H3JgUtF_-RHpMRyrrAPSEQU,3762
|
|
4
|
+
miepython/bessel.py,sha256=U094wY_5RFqrVjXZgMbacmt_yqpP8GBtRZ24-MNzBsU,3647
|
|
5
|
+
miepython/core.py,sha256=pk_dxdLxVtsEMjj2HLJd7ZucZQJrA-MbYaxBDcARIC0,27233
|
|
6
|
+
miepython/field.py,sha256=tQ2OwNqqE_KlYbIyJhSQdgL9DerT5Ze4EUko2zb8I_w,28950
|
|
7
|
+
miepython/mie_jit.py,sha256=f55uQaP7JN4K1cBI-tDRzens3jZDrYmu75C9Oc9gVdE,22500
|
|
8
|
+
miepython/mie_nojit.py,sha256=Z2weX0N0VJkIc-MJMs914C9l-k9flK2YjTTVpFWxUk4,20866
|
|
9
|
+
miepython/monte_carlo.py,sha256=1pRELa63NcZOkhSe2AviObPztPaKe7JRqMBQn3rp9Ls,8422
|
|
10
|
+
miepython/rayleigh.py,sha256=KtuHfyctzidnzkZ5z7mKDSVeWZgUVcPLRqboKySpUdc,17579
|
|
11
|
+
miepython/util.py,sha256=3jxGd0jmPFYolllQXISLDmz0jE4C1AyFD1OyD65dUGo,3648
|
|
12
|
+
miepython/vsh.py,sha256=7t-Dj91K7icLM92G-_Cy-lHmcITJ_xAo7bVc4Qj87Ew,18925
|
|
13
|
+
miepython/data/Johnson.txt,sha256=PcdEhJ3ZKUnt--86ukEvUt-w-814uOyWXtE-G3qWTNE,1337
|
|
14
|
+
miepython/data/segelstein81_index.txt,sha256=aJLqcPIkw-0WDY37GRcTefLV0WGhyMt6IbOKY8JxGww,36719
|
|
15
|
+
miepython-3.4.0.dist-info/licenses/LICENSE.txt,sha256=g9-BWWRLvMDMQ1Zflxliku7Sleom1_SbXHQHOLGgqqk,1055
|
|
16
|
+
miepython-3.4.0.dist-info/METADATA,sha256=PQMN5wDZl77fyShApvaS6wczwWaH8jAY7g4KUmnW-xY,7767
|
|
17
|
+
miepython-3.4.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
18
|
+
miepython-3.4.0.dist-info/top_level.txt,sha256=bfkk6YwrKm_aIzInR5y03YbywpwCzUjJEHaFkEiSKxI,10
|
|
19
|
+
miepython-3.4.0.dist-info/RECORD,,
|
miepython-3.3.0.dist-info/RECORD
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
miepython/__init__.py,sha256=DCQbT9uj3NC33GNii2P242pbCKFffe4tg7_qszNKpKE,5888
|
|
2
|
-
miepython/_backend.py,sha256=l_faAa6zanygRZKA9vMVcfcutHPFFkpqZzHqwjU8QcE,1619
|
|
3
|
-
miepython/bessel.py,sha256=U094wY_5RFqrVjXZgMbacmt_yqpP8GBtRZ24-MNzBsU,3647
|
|
4
|
-
miepython/core.py,sha256=SxppxzCwor0qFNMTPReBM6SZTDhuhuWyrnFEdm8fiQE,22519
|
|
5
|
-
miepython/field.py,sha256=3CFj0Tg764fT-BABSGjmhOGiBiUUsqDuVheXToGb7Wg,26494
|
|
6
|
-
miepython/mie_jit.py,sha256=kYy9UCfuEgPSL0XY7P8Qx4IqBr9BbffusF6oeZdTnvQ,21685
|
|
7
|
-
miepython/mie_nojit.py,sha256=EGWqpvdnWOOV72x2wPy8TOSYXLguKXKQn-LzRXYpkrs,20315
|
|
8
|
-
miepython/monte_carlo.py,sha256=ZEccQCkqlbqFOXmVmVzgWx41nBJ-Yuj45-cxYDLZjDY,6015
|
|
9
|
-
miepython/rayleigh.py,sha256=cWSmP-N5QXF2u7WPwew_QiI4gyJx4FAZNxSiKFvpCMo,8875
|
|
10
|
-
miepython/util.py,sha256=3jxGd0jmPFYolllQXISLDmz0jE4C1AyFD1OyD65dUGo,3648
|
|
11
|
-
miepython/vsh.py,sha256=bPmEBCxbjCcNgisw3qQR-Zso46-aGPrnv9VBu7jhyTM,18114
|
|
12
|
-
miepython/data/Johnson.txt,sha256=PcdEhJ3ZKUnt--86ukEvUt-w-814uOyWXtE-G3qWTNE,1337
|
|
13
|
-
miepython/data/segelstein81_index.txt,sha256=aJLqcPIkw-0WDY37GRcTefLV0WGhyMt6IbOKY8JxGww,36719
|
|
14
|
-
miepython-3.3.0.dist-info/licenses/LICENSE.txt,sha256=g9-BWWRLvMDMQ1Zflxliku7Sleom1_SbXHQHOLGgqqk,1055
|
|
15
|
-
miepython-3.3.0.dist-info/METADATA,sha256=e6yTtC4kocqZOZOCC7xN6XD3Ao00S2CKphQORmvesKs,7831
|
|
16
|
-
miepython-3.3.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
17
|
-
miepython-3.3.0.dist-info/top_level.txt,sha256=bfkk6YwrKm_aIzInR5y03YbywpwCzUjJEHaFkEiSKxI,10
|
|
18
|
-
miepython-3.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|