PyMieSim 3.5.4.3__cp312-cp312-macosx_14_0_arm64.whl → 3.6.0__cp312-cp312-macosx_14_0_arm64.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.
- PyMieSim/__init__.py +8 -3
- PyMieSim/__main__.py +2 -0
- PyMieSim/_version.py +2 -2
- PyMieSim/binary/interface_detector.cpython-310-darwin.so +0 -0
- PyMieSim/binary/interface_detector.cpython-311-darwin.so +0 -0
- PyMieSim/binary/interface_detector.cpython-312-darwin.so +0 -0
- PyMieSim/binary/interface_experiment.cpython-310-darwin.so +0 -0
- PyMieSim/binary/interface_experiment.cpython-311-darwin.so +0 -0
- PyMieSim/binary/interface_experiment.cpython-312-darwin.so +0 -0
- PyMieSim/binary/interface_scatterer.cpython-310-darwin.so +0 -0
- PyMieSim/binary/interface_scatterer.cpython-311-darwin.so +0 -0
- PyMieSim/binary/interface_scatterer.cpython-312-darwin.so +0 -0
- PyMieSim/binary/interface_sets.cpython-310-darwin.so +0 -0
- PyMieSim/binary/interface_sets.cpython-311-darwin.so +0 -0
- PyMieSim/binary/interface_sets.cpython-312-darwin.so +0 -0
- PyMieSim/binary/interface_source.cpython-310-darwin.so +0 -0
- PyMieSim/binary/interface_source.cpython-311-darwin.so +0 -0
- PyMieSim/binary/interface_source.cpython-312-darwin.so +0 -0
- PyMieSim/binary/libcpp_coordinates.a +0 -0
- PyMieSim/binary/libcpp_detector.a +0 -0
- PyMieSim/binary/libcpp_experiment.a +0 -0
- PyMieSim/binary/libcpp_fibonacci.a +0 -0
- PyMieSim/binary/libcpp_mode_field.a +0 -0
- PyMieSim/binary/libcpp_sets.a +0 -0
- PyMieSim/binary/libcpp_source.a +0 -0
- PyMieSim/single/scatterer/core_shell.py +13 -1
- PyMieSim/single/scatterer/cylinder.py +6 -1
- PyMieSim/single/scatterer/sphere.py +13 -1
- PyMieSim/special_functions.py +7 -8
- lib/libZBessel.a +0 -0
- lib/lib_ZBessel.a +0 -0
- lib/libcpp_base_scatterer.a +0 -0
- lib/libcpp_coreshell.a +0 -0
- lib/libcpp_cylinder.a +0 -0
- lib/libcpp_sphere.a +0 -0
- {pymiesim-3.5.4.3.dist-info → pymiesim-3.6.0.dist-info}/METADATA +77 -214
- {pymiesim-3.5.4.3.dist-info → pymiesim-3.6.0.dist-info}/RECORD +39 -39
- {pymiesim-3.5.4.3.dist-info → pymiesim-3.6.0.dist-info}/WHEEL +1 -1
- {pymiesim-3.5.4.3.dist-info → pymiesim-3.6.0.dist-info}/licenses/LICENSE +0 -0
PyMieSim/__init__.py
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
|
1
|
+
"""PyMieSim package initialization.
|
2
|
+
|
3
|
+
This module exposes the package version and sets up unit handling. Importing
|
4
|
+
``Quantity`` here ensures proper initialization on all platforms. Removing this
|
5
|
+
import causes unit tests to fail on macOS systems.
|
6
|
+
"""
|
7
|
+
|
8
|
+
from PyMieSim.units import Quantity # required for unit registration on macOS
|
2
9
|
|
3
10
|
try:
|
4
11
|
from ._version import version as __version__
|
@@ -7,5 +14,3 @@ except ImportError:
|
|
7
14
|
__version__ = "0.0.0"
|
8
15
|
|
9
16
|
debug_mode = False
|
10
|
-
|
11
|
-
# -
|
PyMieSim/__main__.py
CHANGED
PyMieSim/_version.py
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
PyMieSim/binary/libcpp_sets.a
CHANGED
Binary file
|
PyMieSim/binary/libcpp_source.a
CHANGED
Binary file
|
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env python
|
2
2
|
# -*- coding: utf-8 -*-
|
3
3
|
|
4
|
+
import numpy
|
4
5
|
import pyvista
|
5
6
|
from PyOptik.material.base_class import BaseMaterial
|
6
7
|
|
@@ -35,7 +36,7 @@ class CoreShell(CORESHELL, BaseScatterer):
|
|
35
36
|
source: BaseSource
|
36
37
|
|
37
38
|
property_names = [
|
38
|
-
"size_parameter", "cross_section", "g",
|
39
|
+
"size_parameter", "radius", "volume", "cross_section", "g",
|
39
40
|
"Qsca", "Qext", "Qabs", "Qback", "Qratio", "Qpr",
|
40
41
|
"Csca", "Cext", "Cabs", "Cback", "Cratio", "Cpr"
|
41
42
|
]
|
@@ -85,6 +86,17 @@ class CoreShell(CORESHELL, BaseScatterer):
|
|
85
86
|
source=self.source
|
86
87
|
)
|
87
88
|
|
89
|
+
@property
|
90
|
+
def radius(self) -> units.Quantity:
|
91
|
+
"""Return the outer radius of the scatterer."""
|
92
|
+
return self.core_diameter / 2 + self.shell_thickness
|
93
|
+
|
94
|
+
@property
|
95
|
+
def volume(self) -> units.Quantity:
|
96
|
+
"""Return the volume of the scatterer."""
|
97
|
+
vol = (4/3) * numpy.pi * (self.radius ** 3)
|
98
|
+
return vol.to(units.meter ** 3)
|
99
|
+
|
88
100
|
def _add_to_3d_ax(self, scene: pyvista.Plotter, color: str = 'black', opacity: float = 1.0) -> None:
|
89
101
|
"""
|
90
102
|
Adds a 3D cone representation to the given PyVista plotting scene.
|
@@ -27,7 +27,7 @@ class Cylinder(CYLINDER, BaseScatterer):
|
|
27
27
|
source: BaseSource
|
28
28
|
|
29
29
|
property_names = [
|
30
|
-
"size_parameter", "cross_section", "g",
|
30
|
+
"size_parameter", "radius", "cross_section", "g",
|
31
31
|
"Qsca", "Qext", "Qabs",
|
32
32
|
"Csca", "Cext", "Cabs"
|
33
33
|
]
|
@@ -62,6 +62,11 @@ class Cylinder(CYLINDER, BaseScatterer):
|
|
62
62
|
source=self.source
|
63
63
|
)
|
64
64
|
|
65
|
+
@property
|
66
|
+
def radius(self) -> units.Quantity:
|
67
|
+
"""Return the radius of the cylinder."""
|
68
|
+
return self.diameter / 2
|
69
|
+
|
65
70
|
@property
|
66
71
|
def Cback(self) -> None:
|
67
72
|
raise NotImplementedError
|
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env python
|
2
2
|
# -*- coding: utf-8 -*-
|
3
3
|
|
4
|
+
import numpy
|
4
5
|
import pyvista
|
5
6
|
from PyOptik.material.base_class import BaseMaterial
|
6
7
|
|
@@ -29,7 +30,7 @@ class Sphere(SPHERE, BaseScatterer):
|
|
29
30
|
source: BaseSource
|
30
31
|
|
31
32
|
property_names = [
|
32
|
-
"size_parameter", "cross_section", "g",
|
33
|
+
"size_parameter", "radius", "volume", "cross_section", "g",
|
33
34
|
"Qsca", "Qext", "Qabs", "Qback", "Qratio", "Qpr",
|
34
35
|
"Csca", "Cext", "Cabs", "Cback", "Cratio", "Cpr"
|
35
36
|
]
|
@@ -66,6 +67,17 @@ class Sphere(SPHERE, BaseScatterer):
|
|
66
67
|
source=self.source
|
67
68
|
)
|
68
69
|
|
70
|
+
@property
|
71
|
+
def radius(self) -> units.Quantity:
|
72
|
+
"""Return the radius of the sphere."""
|
73
|
+
return self.diameter / 2
|
74
|
+
|
75
|
+
@property
|
76
|
+
def volume(self) -> units.Quantity:
|
77
|
+
"""Return the volume of the sphere."""
|
78
|
+
vol = (4/3) * numpy.pi * (self.radius ** 3)
|
79
|
+
return vol.to(units.meter ** 3)
|
80
|
+
|
69
81
|
def _add_to_3d_ax(self, scene: pyvista.Plotter, color: str = 'black', opacity: float = 1.0) -> None:
|
70
82
|
"""
|
71
83
|
Adds a 3D cone representation to the given PyVista plotting scene.
|
PyMieSim/special_functions.py
CHANGED
@@ -56,22 +56,21 @@ def spherical_to_cartesian(phi: numpy.ndarray, theta: numpy.ndarray, r: numpy.nd
|
|
56
56
|
|
57
57
|
|
58
58
|
def rotate_on_x(phi: numpy.ndarray, theta: numpy.ndarray, angle: float) -> tuple:
|
59
|
-
"""
|
60
|
-
Rotate spherical coordinates around the X-axis.
|
59
|
+
"""Rotate spherical coordinates around the X-axis.
|
61
60
|
|
62
61
|
Parameters
|
63
62
|
----------
|
64
63
|
phi : numpy.ndarray
|
65
|
-
|
64
|
+
Azimuthal angles in radians.
|
66
65
|
theta : numpy.ndarray
|
67
|
-
|
68
|
-
|
69
|
-
|
66
|
+
Polar angles in radians.
|
67
|
+
angle : float
|
68
|
+
Rotation angle about the X-axis, in radians.
|
70
69
|
|
71
70
|
Returns
|
72
71
|
-------
|
73
|
-
|
74
|
-
The
|
72
|
+
tuple
|
73
|
+
The rotated spherical coordinates ``(r, phi, theta)``.
|
75
74
|
"""
|
76
75
|
# Convert to Cartesian for rotation
|
77
76
|
x, y, z = spherical_to_cartesian(phi, theta)
|
lib/libZBessel.a
CHANGED
Binary file
|
lib/lib_ZBessel.a
CHANGED
Binary file
|
lib/libcpp_base_scatterer.a
CHANGED
Binary file
|
lib/libcpp_coreshell.a
CHANGED
Binary file
|
lib/libcpp_cylinder.a
CHANGED
Binary file
|
lib/libcpp_sphere.a
CHANGED
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: PyMieSim
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.6.0
|
4
4
|
Summary: A package for light scattering computation.
|
5
5
|
Keywords: mie,scattering,backscatter,sphere,cylinder,nanoparticle,phase function,efficiency,rayleigh,backscattering
|
6
6
|
Author-Email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
|
@@ -47,29 +47,28 @@ Project-URL: Documentation, https://martinpdes.github.io/PyMieSim/
|
|
47
47
|
Project-URL: Repository, https://github.com/MartinPdeS/PyMieSim
|
48
48
|
Requires-Python: >=3.10
|
49
49
|
Requires-Dist: setuptools_scm[toml]~=8.0
|
50
|
-
Requires-Dist: flexparser<0.5
|
51
50
|
Requires-Dist: numpy==2.2.6
|
52
51
|
Requires-Dist: matplotlib==3.10.3
|
53
52
|
Requires-Dist: MPSPlots==1.6.4
|
54
53
|
Requires-Dist: pydantic<2.12.0,>=2.9.2
|
55
54
|
Requires-Dist: pint-pandas~=0.6
|
56
55
|
Requires-Dist: pandas~=2.3.0
|
57
|
-
Requires-Dist: PyOptik==1.
|
56
|
+
Requires-Dist: PyOptik==1.11.0
|
58
57
|
Requires-Dist: tabulate~=0.9
|
59
58
|
Requires-Dist: pyvista==0.45.2
|
60
59
|
Provides-Extra: testing
|
61
60
|
Requires-Dist: pytest>=0.6; extra == "testing"
|
62
61
|
Requires-Dist: pytest-cov>=2.0; extra == "testing"
|
63
62
|
Requires-Dist: pytest-json-report==1.5.0; extra == "testing"
|
64
|
-
Requires-Dist: coverage==7.9.
|
63
|
+
Requires-Dist: coverage==7.9.2; extra == "testing"
|
65
64
|
Provides-Extra: documentation
|
66
|
-
Requires-Dist: numpydoc==1.
|
65
|
+
Requires-Dist: numpydoc==1.9.0; extra == "documentation"
|
67
66
|
Requires-Dist: sphinx>=5.1.1; extra == "documentation"
|
68
67
|
Requires-Dist: sphinx-rtd-theme==3.0.2; extra == "documentation"
|
69
68
|
Requires-Dist: sphinx-gallery==0.19.0; extra == "documentation"
|
70
69
|
Requires-Dist: pydata-sphinx-theme==0.16.1; extra == "documentation"
|
71
70
|
Provides-Extra: dev
|
72
|
-
Requires-Dist: flake8==7.
|
71
|
+
Requires-Dist: flake8==7.3.0; extra == "dev"
|
73
72
|
Description-Content-Type: text/x-rst
|
74
73
|
|
75
74
|
|logo|
|
@@ -86,191 +85,98 @@ Description-Content-Type: text/x-rst
|
|
86
85
|
- |ci/cd|
|
87
86
|
- |coverage|
|
88
87
|
- |colab|
|
89
|
-
* -
|
90
|
-
- |
|
91
|
-
- |
|
88
|
+
* - PyPI
|
89
|
+
- |PyPI|
|
90
|
+
- |PyPI_download|
|
92
91
|
-
|
93
92
|
* - Anaconda
|
94
93
|
- |anaconda|
|
95
94
|
- |anaconda_download|
|
96
95
|
- |anaconda_date|
|
97
96
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
97
|
PyMieSim
|
102
98
|
========
|
103
99
|
|
104
|
-
**PyMieSim** is
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
- **Spherical particles**
|
111
|
-
- **Infinite cylindrical particles**
|
112
|
-
- **Core-shell spherical particles**
|
113
|
-
|
114
|
-
The software also allows the user to customize the light source and detector attributes, depending on the specific simulation needs. The package is modular and provides an intuitive interface for users to model complex scattering scenarios with minimal effort.
|
115
|
-
|
116
|
-
|code_structure|
|
117
|
-
|
118
|
-
Main Submodules
|
119
|
-
---------------
|
120
|
-
|
121
|
-
PyMieSim is organized into two primary submodules:
|
122
|
-
|
123
|
-
1. **single**: Focused on analyzing individual scattering events, such as:
|
124
|
-
- Far-field distributions
|
125
|
-
- Scattering phase functions
|
126
|
-
- Stokes parameters
|
127
|
-
|
128
|
-
2. **experiment**: Designed for exploring how scattering parameters, such as `Qsca`, `Qext`, `g`, and `coupling (power)`, behave over large datasets, incorporating variations in sources, scatterers, and detectors.
|
100
|
+
**PyMieSim** is an open-source Python package for fast and flexible Mie
|
101
|
+
scattering simulations. It supports spherical, cylindrical and core--shell
|
102
|
+
particles and provides helper classes for custom sources and detectors.
|
103
|
+
The project targets both quick single-scatterer studies and large parametric
|
104
|
+
experiments.
|
129
105
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
---------------
|
137
|
-
|
138
|
-
To use PyMieSim in Python, simply install the package and begin incorporating it into your scripts.
|
106
|
+
Features
|
107
|
+
--------
|
108
|
+
- Solvers for spheres, cylinders and core--shell geometries.
|
109
|
+
- Built-in models for plane wave and Gaussian sources.
|
110
|
+
- Multiple detector types including photodiodes and coherent modes.
|
111
|
+
- Simple data analysis with pandas DataFrame outputs.
|
139
112
|
|
140
113
|
Installation
|
141
|
-
|
142
|
-
|
143
|
-
PyMieSim supports Windows, Linux, macOS (including Apple M1/M2 chips), and ARM architectures. To install the package, use pip:
|
114
|
+
------------
|
115
|
+
PyMieSim is available on PyPI and Anaconda. Install it with:
|
144
116
|
|
145
117
|
.. code-block:: bash
|
146
118
|
|
147
|
-
|
148
|
-
|
149
|
-
conda install PyMieSim (using conda environment manager)
|
119
|
+
pip install PyMieSim
|
120
|
+
conda install PyMieSim
|
150
121
|
|
151
|
-
|
152
|
-
|
153
|
-
----
|
154
|
-
|
155
|
-
Example Code
|
156
|
-
------------
|
122
|
+
See the `online documentation <https://pymiesim.readthedocs.io/>`_ for detailed
|
123
|
+
usage and additional examples.
|
157
124
|
|
158
|
-
|
125
|
+
Quick example
|
126
|
+
-------------
|
127
|
+
Below is a short example computing the scattering efficiency of a sphere.
|
159
128
|
|
160
129
|
.. code-block:: python
|
161
130
|
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
It produces the following figure which is equivalent to the one found on `wikipedia <https://en.wikipedia.org/wiki/Mie_scattering#/media/File:N4wiki.svg>`_.
|
191
|
-
|
192
|
-
|wikipedia_example|
|
193
|
-
|
194
|
-
|
195
|
-
This is just one example of PyMieSim in action. You can find more examples in the
|
196
|
-
`examples section <https://pymiesim.readthedocs.io/en/master/gallery/index.html>`_ of the documentation.
|
197
|
-
|
198
|
-
----
|
199
|
-
|
200
|
-
Examples
|
201
|
-
--------
|
202
|
-
|
203
|
-
Here are a few more examples showcasing the capabilities of PyMieSim:
|
204
|
-
|
205
|
-
Example 1: Plasmonic Resonances for CoreShell Particles
|
206
|
-
*******************************************************
|
207
|
-
|
208
|
-
|example_plasmon|
|
209
|
-
|
210
|
-
Example 2: Scattering Efficiency vs Diameter for Spherical Particles
|
211
|
-
********************************************************************
|
212
|
-
|
213
|
-
|example_qsca|
|
214
|
-
|
215
|
-
----
|
216
|
-
|
217
|
-
Manual Building
|
218
|
-
---------------
|
219
|
-
|
220
|
-
If you prefer or need to build the project manually (e.g., for Apple silicon devices), ensure you have a C++ compiler (such as gcc) and Fortran installed, as well as Python 3.7+.
|
221
|
-
|
222
|
-
Build Instructions
|
223
|
-
******************
|
224
|
-
|
225
|
-
Linux/MacOS
|
226
|
-
~~~~~~~~~~~
|
131
|
+
import numpy as np
|
132
|
+
from PyMieSim.experiment.scatterer import Sphere
|
133
|
+
from PyMieSim.experiment.source import Gaussian
|
134
|
+
from PyMieSim.experiment import Setup
|
135
|
+
from PyMieSim.units import nanometer, degree, watt, AU, RIU
|
136
|
+
|
137
|
+
source = Gaussian(
|
138
|
+
wavelength=np.linspace(400, 1000, 500) * nanometer,
|
139
|
+
polarization=0 * degree,
|
140
|
+
optical_power=1e-3 * watt,
|
141
|
+
NA=0.2 * AU,
|
142
|
+
)
|
143
|
+
|
144
|
+
scatterer = Sphere(
|
145
|
+
diameter=[200] * nanometer,
|
146
|
+
property=[4] * RIU,
|
147
|
+
medium_property=1 * RIU,
|
148
|
+
source=source,
|
149
|
+
)
|
150
|
+
|
151
|
+
experiment = Setup(scatterer=scatterer, source=source)
|
152
|
+
df = experiment.get("Qsca")
|
153
|
+
df.plot_data(x="source:wavelength")
|
154
|
+
|
155
|
+
Building from source
|
156
|
+
--------------------
|
157
|
+
For development or manual compilation, clone the repository and run:
|
227
158
|
|
228
159
|
.. code-block:: bash
|
229
160
|
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
sudo make install
|
237
|
-
cd ..
|
238
|
-
python -m pip install .
|
239
|
-
|
240
|
-
For Windows, use `MinGW Makefiles` instead of `Unix Makefiles` when invoking CMake.
|
241
|
-
|
242
|
-
----
|
161
|
+
git submodule update --init
|
162
|
+
mkdir build && cd build
|
163
|
+
cmake ../ -G"Unix Makefiles"
|
164
|
+
sudo make install
|
165
|
+
cd ..
|
166
|
+
python -m pip install .
|
243
167
|
|
244
168
|
Testing
|
245
169
|
-------
|
246
|
-
|
247
|
-
You can test the local version of PyMieSim by running the following commands:
|
170
|
+
Run the unit tests with:
|
248
171
|
|
249
172
|
.. code-block:: bash
|
250
173
|
|
251
|
-
|
252
|
-
|
253
|
-
pip install PyMieSim[testing]
|
254
|
-
pytest
|
255
|
-
|
256
|
-
This will run the suite of unit tests and provide coverage details.
|
257
|
-
|
258
|
-
----
|
259
|
-
|
260
|
-
Google Colab
|
261
|
-
------------
|
262
|
-
|
263
|
-
In 2024, running code on your local machine is optional! You can leverage the power of Google Colab to run PyMieSim remotely. Use the provided
|
264
|
-
`Colab notebook <https://colab.research.google.com/github/MartinPdeS/PyMieSim/blob/master/notebook.ipynb>`_ for an interactive experience.
|
265
|
-
|
266
|
-
|colab|
|
267
|
-
|
268
|
-
----
|
174
|
+
pip install PyMieSim[testing]
|
175
|
+
pytest
|
269
176
|
|
270
177
|
Citing PyMieSim
|
271
178
|
---------------
|
272
|
-
|
273
|
-
If PyMieSim contributes to your research, we kindly ask that you cite the following paper:
|
179
|
+
If you use PyMieSim in academic work, please cite:
|
274
180
|
|
275
181
|
.. code-block:: none
|
276
182
|
|
@@ -285,99 +191,56 @@ If PyMieSim contributes to your research, we kindly ask that you cite the follow
|
|
285
191
|
doi = {10.1364/OPTCON.473102},
|
286
192
|
}
|
287
193
|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
Experimental Graphical User Interface (GUI)
|
293
|
-
-------------------------------------------
|
294
|
-
|
295
|
-
Since version 1.7.0, PyMieSim offers an experimental GUI for users who prefer a graphical approach to simulations. While still under development, the GUI can be installed and accessed as follows:
|
296
|
-
|
297
|
-
.. code-block:: bash
|
298
|
-
|
299
|
-
pip install PyMieSim
|
300
|
-
python -m PyMieSim
|
301
|
-
|
302
|
-
The GUI is not yet as robust as the core Python API, but it provides a simplified interface for generating simulations.
|
303
|
-
|
304
|
-
|example_gui|
|
305
|
-
|
306
|
-
----
|
307
|
-
|
308
|
-
Contact Information
|
309
|
-
-------------------
|
310
|
-
|
311
|
-
PyMieSim is actively developed and maintained by Martin Poinsinet de Sivry-Houle. If you're interested in contributing or have questions, feel free to reach out.
|
312
|
-
|
313
|
-
Email: `martin.poinsinet.de.sivry@gmail.ca <mailto:martin.poinsinet.de.sivry@gmail.ca?subject=PyMieSim>`_
|
314
|
-
|
315
|
-
Flag_0
|
316
|
-
|
317
|
-
----
|
194
|
+
Contact
|
195
|
+
-------
|
196
|
+
For questions or contributions, contact `martin.poinsinet.de.sivry@gmail.ca <mailto:martin.poinsinet.de.sivry@gmail.ca>`_.
|
318
197
|
|
319
198
|
.. |logo| image:: https://github.com/MartinPdeS/PyMieSim/raw/master/docs/images/logo.png
|
320
199
|
:alt: PyOptik logo
|
321
|
-
|
322
200
|
.. |python| image:: https://img.shields.io/pypi/pyversions/pymiesim.svg
|
323
201
|
:alt: Python
|
324
202
|
:target: https://www.python.org/
|
325
|
-
|
326
203
|
.. |zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5593704.svg
|
327
204
|
:alt: Scientific article
|
328
205
|
:target: https://doi.org/10.5281/zenodo.4556074
|
329
|
-
|
330
206
|
.. |colab| image:: https://colab.research.google.com/assets/colab-badge.svg
|
331
207
|
:alt: Google Colab
|
332
208
|
:target: https://colab.research.google.com/github/MartinPdeS/PyMieSim/blob/master/notebook.ipynb
|
333
|
-
|
334
209
|
.. |docs| image:: https://github.com/martinpdes/pymiesim/actions/workflows/deploy_documentation.yml/badge.svg
|
335
210
|
:target: https://martinpdes.github.io/PyMieSim/
|
336
211
|
:alt: Documentation Status
|
337
|
-
|
338
|
-
|
339
|
-
:alt: PyPi version
|
212
|
+
.. |PyPI| image:: https://badge.fury.io/py/PyMieSim.svg
|
213
|
+
:alt: PyPI version
|
340
214
|
:target: https://badge.fury.io/py/PyMieSim
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
:target: https://pypistats.org/packages/pymiesim
|
345
|
-
|
215
|
+
.. |PyPI_download| image:: https://img.shields.io/pypi/dm/PyMieSim?style=plastic&label=PyPI%20downloads&labelColor=hex&color=hex
|
216
|
+
:alt: PyPI downloads
|
217
|
+
:target: https://pypistats.org/packages/pymiesim
|
346
218
|
.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/PyMieSim/python-coverage-comment-action-data/badge.svg
|
347
219
|
:alt: Unittest coverage
|
348
220
|
:target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/PyMieSim/blob/python-coverage-comment-action-data/htmlcov/index.html
|
349
|
-
|
350
221
|
.. |ci/cd| image:: https://github.com/martinpdes/pymiesim/actions/workflows/deploy_coverage.yml/badge.svg
|
351
222
|
:alt: Unittest Status
|
352
|
-
|
353
223
|
.. |code_structure| image:: https://github.com/MartinPdeS/PyMieSim/raw/master/docs/images/code_structure.png
|
354
224
|
:width: 800
|
355
225
|
:alt: Structure of the library
|
356
|
-
|
357
226
|
.. |example_gui| image:: https://github.com/MartinPdeS/PyMieSim/raw/master/docs/images/example_gui.png
|
358
227
|
:width: 800
|
359
228
|
:alt: Structure of the library
|
360
|
-
|
361
229
|
.. |wikipedia_example| image:: https://github.com/MartinPdeS/PyMieSim/raw/master/docs/images/wikipedia_example.png
|
362
230
|
:width: 800
|
363
231
|
:alt: Example wikipedia
|
364
|
-
|
365
232
|
.. |example_plasmon| image:: https://github.com/MartinPdeS/PyMieSim/raw/master/docs/images/plasmonic_resonances.png
|
366
233
|
:width: 800
|
367
234
|
:alt: Plasmonic resonances
|
368
|
-
|
369
235
|
.. |example_qsca| image:: https://github.com/MartinPdeS/PyMieSim/raw/master/docs/images/Qsca_diameter.png
|
370
236
|
:width: 800
|
371
237
|
:alt: Qsca vs diameter
|
372
|
-
|
373
238
|
.. |anaconda| image:: https://anaconda.org/martinpdes/pymiesim/badges/version.svg
|
374
|
-
|
375
|
-
|
376
|
-
|
239
|
+
:alt: Anaconda version
|
240
|
+
:target: https://anaconda.org/martinpdes/pymiesim
|
377
241
|
.. |anaconda_download| image:: https://anaconda.org/martinpdes/pymiesim/badges/downloads.svg
|
378
|
-
|
379
|
-
|
380
|
-
|
242
|
+
:alt: Anaconda downloads
|
243
|
+
:target: https://anaconda.org/martinpdes/pymiesim
|
381
244
|
.. |anaconda_date| image:: https://anaconda.org/martinpdes/pymiesim/badges/latest_release_relative_date.svg
|
382
245
|
:alt: Latest release date
|
383
246
|
:target: https://anaconda.org/martinpdes/pymiesim
|
@@ -1,15 +1,11 @@
|
|
1
|
-
pymiesim-3.5.4.3.dist-info/RECORD,,
|
2
|
-
pymiesim-3.5.4.3.dist-info/WHEEL,sha256=I1cjv22AH4f535uJ7LXi2cB9hHnwWJJUjEcKzY-eyp0,114
|
3
|
-
pymiesim-3.5.4.3.dist-info/METADATA,sha256=3QF4Pz6lqkM-onxvKsHs4zMk7yLajZ-4mZx9uSpp8dM,13472
|
4
|
-
pymiesim-3.5.4.3.dist-info/licenses/LICENSE,sha256=-QSWDJghhVqbAzChmEK86liqPX_eeQFgdwlrKTLLcIA,1088
|
5
1
|
PyMieSim/units.py,sha256=L7Trn8rW5d5AQK1_8I-XwaHGswXklupXs5wHgWQtJNQ,4224
|
6
|
-
PyMieSim/_version.py,sha256=
|
2
|
+
PyMieSim/_version.py,sha256=eic-6Xs9-9wocSdGZ3Qt8lkpGHJbspTaUymbZDQfBkA,511
|
7
3
|
PyMieSim/directories.py,sha256=ohe9qvjwN0IJ7OpZHsD7LxKYGMLr4CC7xYUGgWgw-Rg,648
|
8
|
-
PyMieSim/__init__.py,sha256=
|
4
|
+
PyMieSim/__init__.py,sha256=ZRdkOFRqjkVCq0qQs4DHIFnAgkdtBr19gZaq1k6bzxw,453
|
9
5
|
PyMieSim/mesh.py,sha256=WcX_rXpWxH7WDniIqaG4rPC-pfDm4AG9ZAX-zI8GbhU,14566
|
10
6
|
PyMieSim/polarization.py,sha256=PP8ksfWeTOnW3IOGVsAe8L183pgqe5R-KKBF99nQhaU,5487
|
11
|
-
PyMieSim/special_functions.py,sha256=
|
12
|
-
PyMieSim/__main__.py,sha256=
|
7
|
+
PyMieSim/special_functions.py,sha256=tC82qnTSpcNv0MFy5wZsVFwhbJKy_5tO8kBullijOaY,2093
|
8
|
+
PyMieSim/__main__.py,sha256=KO6-uwDgv95PHXlhpyIcyFX3qqddbI8HdQTsdqziz7g,237
|
13
9
|
PyMieSim/single/__init__.py,sha256=GqpWQIaAkruQ4d1fa_fI2Qf8b5TGNXRFdkuHoe8LsTc,2207
|
14
10
|
PyMieSim/single/representations.py,sha256=ThzTI0fQYhWC8LKHMLo17GOT3v6cSOa1n4iplNitn2A,29149
|
15
11
|
PyMieSim/single/source/__init__.py,sha256=zCiDBYIE0TdYbtQXPgfU70DNz7ZxqtENU_NvrThJpTg,93
|
@@ -17,10 +13,10 @@ PyMieSim/single/source/planewave.py,sha256=J2t78fseCthUzCLqjH1KD7H669kGwiyBxPjkC
|
|
17
13
|
PyMieSim/single/source/base.py,sha256=HKqsEVw7caNV7ev8OVNPi3zMHc4cgGuhH9s2XcgvgBw,124
|
18
14
|
PyMieSim/single/source/gaussian.py,sha256=vVZ7UVkhlm2KvsTOf2uVcm9rjgXISSs7sv798m9otp4,4849
|
19
15
|
PyMieSim/single/scatterer/__init__.py,sha256=2a9o-VHfqGloCEEbfIGSjLIIzWssRCt9W72AYvU2nSg,124
|
20
|
-
PyMieSim/single/scatterer/core_shell.py,sha256=
|
16
|
+
PyMieSim/single/scatterer/core_shell.py,sha256=fqhu2PooEUDo7Vnotio7_iz2stozC5i5XczP8vdOKMs,5074
|
21
17
|
PyMieSim/single/scatterer/base.py,sha256=CVVI8_nSgoF_BkEN0Fb_A61YHgMnKfOiKaKbe60NsD8,19701
|
22
|
-
PyMieSim/single/scatterer/sphere.py,sha256=
|
23
|
-
PyMieSim/single/scatterer/cylinder.py,sha256=
|
18
|
+
PyMieSim/single/scatterer/sphere.py,sha256=NVBP9iUX0pAPWdi13xbMzgLfllDPCgvF5BuJuWfUUec,3847
|
19
|
+
PyMieSim/single/scatterer/cylinder.py,sha256=GNABjAb2csnWxANlIdJW7PhuuewJHMVAlzNmlfnz7eU,4062
|
24
20
|
PyMieSim/single/detector/uncoherent.py,sha256=DOqf5hU5ghEhj8IooC5uJX6pjMwNBveIr-FzcWkgTLk,4848
|
25
21
|
PyMieSim/single/detector/__init__.py,sha256=os2BbDrnjrEZ3-gie6AKJAZHyE_I4OvKo0uuDEKqpE0,89
|
26
22
|
PyMieSim/single/detector/base.py,sha256=2nKXdx-8ycg1Xm02rxV4TJIAHbQWHCOR-9T32byf5zs,11319
|
@@ -70,32 +66,36 @@ PyMieSim/experiment/detector/photodiode.py,sha256=GBSoF3mhVRyADJbEO2g4n0LffmGU7H
|
|
70
66
|
PyMieSim/experiment/detector/coherent_mode.py,sha256=ME1CtxUfPY40E3HJoqJrW0ikje6QvhMY4RYs-yOvx0Q,1805
|
71
67
|
PyMieSim/experiment/detector/__init__.py,sha256=pvtXHKR2pM7JOeTTcouKipeQwi0e8dZiZTpdAn9K2Ls,75
|
72
68
|
PyMieSim/experiment/detector/base.py,sha256=j2yY_InLQDAPgDkM19ILlIEF-2koGMKRe9Hc-nFpyGc,7340
|
73
|
-
PyMieSim/binary/interface_source.cpython-312-darwin.so,sha256=
|
74
|
-
PyMieSim/binary/interface_experiment.cpython-311-darwin.so,sha256=
|
75
|
-
PyMieSim/binary/interface_sets.cpython-312-darwin.so,sha256=
|
76
|
-
PyMieSim/binary/interface_scatterer.cpython-312-darwin.so,sha256=
|
77
|
-
PyMieSim/binary/libcpp_coordinates.a,sha256=
|
78
|
-
PyMieSim/binary/interface_detector.cpython-312-darwin.so,sha256=
|
79
|
-
PyMieSim/binary/libcpp_source.a,sha256=
|
80
|
-
PyMieSim/binary/interface_experiment.cpython-310-darwin.so,sha256=
|
69
|
+
PyMieSim/binary/interface_source.cpython-312-darwin.so,sha256=CQ8wPJrzmwAW9nnbhMUQD4KIpSSCuWP7kXfHDAoqBqY,240624
|
70
|
+
PyMieSim/binary/interface_experiment.cpython-311-darwin.so,sha256=j-bh2Ec8tOKyVRCQwgYr5L5Xi4LWUJUFamhlT7N5vf4,491584
|
71
|
+
PyMieSim/binary/interface_sets.cpython-312-darwin.so,sha256=OvqbheIrBafqIkepmA92exYqyQh_LvYngm7InIJ3M5s,595968
|
72
|
+
PyMieSim/binary/interface_scatterer.cpython-312-darwin.so,sha256=YskPBQa5MBPGHkxIRZ5pQ_m3_5YMQKixbn97JIxMePA,576512
|
73
|
+
PyMieSim/binary/libcpp_coordinates.a,sha256=SYrQ8xUeT5o5QpiXsZJVeuLK5F431C6UdLY1vQ6iAdg,22432
|
74
|
+
PyMieSim/binary/interface_detector.cpython-312-darwin.so,sha256=zb-Fd5xUJ8boMJ-hrYYj-HmwaURdymcSfs00GBtTSlY,492336
|
75
|
+
PyMieSim/binary/libcpp_source.a,sha256=gomZXYXL6fRvVke9VTtLuNB5hT1N27WT-OwGegcAfIA,6720
|
76
|
+
PyMieSim/binary/interface_experiment.cpython-310-darwin.so,sha256=4fBEUHQlYLuesrGM45q23MiGDHJ2SC6D6OyuFhS1kT8,474976
|
81
77
|
PyMieSim/binary/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
82
|
-
PyMieSim/binary/interface_detector.cpython-311-darwin.so,sha256=
|
83
|
-
PyMieSim/binary/interface_source.cpython-310-darwin.so,sha256=
|
84
|
-
PyMieSim/binary/libcpp_fibonacci.a,sha256=
|
85
|
-
PyMieSim/binary/interface_sets.cpython-310-darwin.so,sha256=
|
86
|
-
PyMieSim/binary/libcpp_experiment.a,sha256=
|
87
|
-
PyMieSim/binary/libcpp_mode_field.a,sha256=
|
88
|
-
PyMieSim/binary/interface_scatterer.cpython-310-darwin.so,sha256=
|
89
|
-
PyMieSim/binary/interface_detector.cpython-310-darwin.so,sha256=
|
90
|
-
PyMieSim/binary/interface_source.cpython-311-darwin.so,sha256=
|
91
|
-
PyMieSim/binary/interface_sets.cpython-311-darwin.so,sha256=
|
92
|
-
PyMieSim/binary/interface_experiment.cpython-312-darwin.so,sha256=
|
93
|
-
PyMieSim/binary/libcpp_sets.a,sha256=
|
94
|
-
PyMieSim/binary/interface_scatterer.cpython-311-darwin.so,sha256=
|
95
|
-
PyMieSim/binary/libcpp_detector.a,sha256=
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
lib/
|
101
|
-
lib/
|
78
|
+
PyMieSim/binary/interface_detector.cpython-311-darwin.so,sha256=lh_RCWgRN4R1wKI3q-tWLtC_8666eV09V3H0qafR0q8,492336
|
79
|
+
PyMieSim/binary/interface_source.cpython-310-darwin.so,sha256=WKhrAqfJWndYN1ACTmjnD7W4qHu0OPZiE4kK7Zu-de0,240624
|
80
|
+
PyMieSim/binary/libcpp_fibonacci.a,sha256=9LZ1QjH6OFxOU-8AGBZs52-H5XrJuA3737jweXAC39o,14160
|
81
|
+
PyMieSim/binary/interface_sets.cpython-310-darwin.so,sha256=67faOdm74RVKsEq-bRptcZTtagRfYbSdRkAW9njxtJ0,579360
|
82
|
+
PyMieSim/binary/libcpp_experiment.a,sha256=uN2gy7eq7sm8zsr_8KrtIB7n8BNEYtPRqYCx9tIG3H4,173480
|
83
|
+
PyMieSim/binary/libcpp_mode_field.a,sha256=L4UN-s6OSetr4iEfD_4rj-qbUROwsUJe_RNT8k13hTc,10960
|
84
|
+
PyMieSim/binary/interface_scatterer.cpython-310-darwin.so,sha256=UdqKQyH0KUkGlW1PIz891BnfDiUQ08QqHRDcDQda4MI,559936
|
85
|
+
PyMieSim/binary/interface_detector.cpython-310-darwin.so,sha256=Cm8QqjfgCodblQQfRTFgh9kTxYMmS-D55E_w7ND4N9o,475776
|
86
|
+
PyMieSim/binary/interface_source.cpython-311-darwin.so,sha256=8ZwlKEMALhwE8u7vvSH_LlEpimsPcQtB8BnubLyKW0M,240624
|
87
|
+
PyMieSim/binary/interface_sets.cpython-311-darwin.so,sha256=4rRbWfSR1jQ1cF328qHIfYZN1em6sJMr3pbGw9wHALo,579440
|
88
|
+
PyMieSim/binary/interface_experiment.cpython-312-darwin.so,sha256=suJQTGXWhS5aJb9xYpQQi23CY3vrVqmiLUTbp0867kE,491584
|
89
|
+
PyMieSim/binary/libcpp_sets.a,sha256=WEM1y-A6JCgCdGNqZGed5YMnf2OO3t5on3r9LUYhQuI,173472
|
90
|
+
PyMieSim/binary/interface_scatterer.cpython-311-darwin.so,sha256=W9qVZz9zvi4cRU_GgqMMQnxsx6KhKQ5cx3IaUxynYI8,576512
|
91
|
+
PyMieSim/binary/libcpp_detector.a,sha256=YXmmr8QooypEZX8vQN1V5XgLfrI3-toTEK_IbmGttHE,200752
|
92
|
+
pymiesim-3.6.0.dist-info/RECORD,,
|
93
|
+
pymiesim-3.6.0.dist-info/WHEEL,sha256=5ye47H9DCxgF2P1ZFb3v-Dd6T1guVxvcfwpP6gQdi98,114
|
94
|
+
pymiesim-3.6.0.dist-info/METADATA,sha256=NLH1cmL-XPL5EVHrCZuT_ZTIbYMT-jqEMJlNV92L1PQ,9530
|
95
|
+
pymiesim-3.6.0.dist-info/licenses/LICENSE,sha256=-QSWDJghhVqbAzChmEK86liqPX_eeQFgdwlrKTLLcIA,1088
|
96
|
+
lib/libcpp_cylinder.a,sha256=tb4OEgUYhYqlBsoCoEQwDQl99RTTnDCzUEpj_9Jb0zA,186504
|
97
|
+
lib/libcpp_sphere.a,sha256=MEhipYsfkJdH3d7UOCkzH8Ho3lHs5QbYnxD4WlfFPHs,197768
|
98
|
+
lib/libZBessel.a,sha256=7IO-fFXh5Ji_8BIGKp2_0GN7Mnho0mvYZ7LZxrK4GCI,106200
|
99
|
+
lib/lib_ZBessel.a,sha256=3XOCg3vvzB2xw-bN9CDXWcyCaNLToBf2zoUl47whuck,9840
|
100
|
+
lib/libcpp_coreshell.a,sha256=cjNemyuRyNr0fh8FEQnF3h1pvjctphR1oXSQxWjRje8,196584
|
101
|
+
lib/libcpp_base_scatterer.a,sha256=nN4lBF5Y4g68s8RQi1G39O3U3XoH8wpdiDqCU99HBZw,197152
|
File without changes
|