Skip to content
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

Added tests for LongitudinalProfileFromData and fix for issue #185 #309

Merged
merged 37 commits into from
Oct 17, 2024

Conversation

em-archer
Copy link
Contributor

Editing LongitudinalProfileFromData to allow for monotonically decreasing spectral data (fix for #185) and adding relevant tests to test_laser_profiles. Currently no tests exist for LongitudinalProfileFromData, so adding tests for monotonically increasing/decreasing spectral data. Test for temporal data could be added in future.

“Emily and others added 30 commits October 8, 2024 14:18
Adding tests to allow for longitudinal profile from spectral data, whether monotonically increasing or decreasing
Editing LongitudinalProfileFromData to allow for monotonically decreasing spectral data
Updated tests for monotonically increasing or decreasing specta
Wavelength and wavelength axis given different names
Analytic ft of GaussianLongitudinalProfile needs checking
Analytic spectrum checked in separate script
…omega

When data["datatype"] = "spectral", data["axis"] can either be wavelength lambda in m or angular frequency omega in s^-1. The user doesn't need to specify, it will automatically detect and convert to wavelength if the latter is passed.
User must now specify axis type (wavelength by default). Also added proper conversion for spectral intensity if axis is omega.
@MaxThevenet MaxThevenet changed the title [Correct branch] Added tests for LongitudinalProfileFromData and fix for issue #185 Added tests for LongitudinalProfileFromData and fix for issue #185 Oct 17, 2024
@MaxThevenet MaxThevenet merged commit 2c1f249 into LASY-org:development Oct 17, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants