Closed danielhollas closed 1 month ago
I am having numerical issues with the new tests but apart from that this is ready for review @JanosJiri
The tests are now passing, I've used pytest.approx for inexact comparisons. It's not a fully satisfying solution since it doesn't integrate as well with the inline-snapshot
library. I'll keep mulling it over but it should not block this PR.
The tests are now passing, I've used pytest.approx for inexact comparisons. It's not a fully satisfying solution since it doesn't integrate as well with the
inline-snapshot
library. I'll keep mulling it over but it should not block this PR.
I quite like it. What I had a problem with when doing the tests was the absolute comparison and threshold for absolute differences. This allows us to compare relative differences, which might be very handy.
Moved
calc_envelope
method toLaserPulse
class. Also moved thetmin
andtmin
attributes and their computation intoLaserPulse
.