-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Longitudinal profile from data: need check to avoid NaN values #253
Comments
Hi @n01r, I have a question: you constructed the laser pulse using spectral information, is it possible to get the temporal information of the pulse directly from LASY and vice versa ? |
Hi @koesterf, Since spectral information is often what is directly measured in experiments I was playing around with the method to construct a pulse from such information. Are you asking if, in general, one can extract temporal information of a laser pulse from a LASY I was pointing out here in this issue that one could run into parameter combinations that create only NaNs and the user might not know why. |
Hi @n01r
Yes, I want to know if one make a longitudinal profile using spectral method, then is it possible to get the temporal information after full pulse construction directly from LASY internal utility. And similarly, if the laser pulse longitudinal profile is constructed with temporal information is it possible to get spectral information directly using LASY internal utility. I saw something like "get_spectral_field()" unitility spectral and "get_temporal_field" utility temporal |
I was playing around with the laser creation to check something about the noise level / lowest intensity based on wavelength bandwidth and number of samples in time. I found that specific combinations just give warnings and produce
NaN
values.A proper check with a user-facing error message would probably be helpful to avoid that someone accidentally hits such a combination.
(Click tab below to expand function definition)
create_laser
The orange line with 1500 sample points is missing
Warning
/global/homes/m/mgarten/.conda/envs/warpx-pm-postproc/lib/python3.12/site-packages/lasy/profiles/longitudinal/longitudinal_profile_from_data.py:90: RuntimeWarning: invalid value encountered in sqrt
freq_amplitude = np.sqrt(freq_intensity)
lasy/lasy/profiles/longitudinal/longitudinal_profile_from_data.py
Line 90 in 71c893a
The text was updated successfully, but these errors were encountered: