Hello,
First of all, thank you for this amazing package. It really helps my research.
I am simulating a BaF molecule in 1D optical molasses. Very similar to the PyLCP CaF MOT example.
Often the simulation runs just fine, but sometimes the following error is thrown:
numpy.core._exceptions.UFuncTypeError: Cannot cast ufunc 'add' output from dtype('complex128') to dtype('float64') with casting rule 'same_kind'
It is thrown at obe.py line 1008.
As a solution i am tempted to edit line 1008 to:
f += f_mag.real
Have you even seen this exception and would you think this is a wise solution?
With kind regards,
Max Vos,
RUG, Netherlands