Open thiamanti opened 1 day ago
Hi @thiamanti, thanks for pointing that error to me. I have reproduced the bug on my side and will be working on a patch. I think it is manageable for me to fix this within two weeks. In the meantime, you can use a Gaussian source instead of PlaneWave as follows:
from PyMieSim.experiment.source import Gaussian
source = Gaussian(
wavelength=1200e-9,
polarization=90,
optical_power=1e-3,
NA=0.2
)
I try to create a PlaneWave using the following script:
And I get this error:
It seems to me that the CppSourceSet constructor expects arguments that are not defined in the case of the PlaneWave class.
Because in PyMieSim/experiment/source.py when creating a PlaneWave odject, the following code is running:
so it seems like CppSourceSet is not accepting the binding_kwargs that are prepared by the function.