-
Notifications
You must be signed in to change notification settings - Fork 30
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
Closes #215 , add overloading for addition and multiplication operators in TransverseProfile #216
Closes #215 , add overloading for addition and multiplication operators in TransverseProfile #216
Conversation
for more information, see https://pre-commit.ci
…-shalloo/lasy into overloadingTransverseProfile
I think it would make sense to add some basic testing for these function. It would be good to have at least something like this. |
for more information, see https://pre-commit.ci
…-shalloo/lasy into overloadingTransverseProfile
for more information, see https://pre-commit.ci
…-shalloo/lasy into overloadingTransverseProfile
Hey @soerenjalas , thanks for the great suggestion. I've added the tests now, again shamelessly copying your code... but seems to work ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks for this PR!
I've followed @soerenjalas implementation of overloading in the Profile class and added it directly in the TransverseProfile class. This allows one to create a laser transverse profile from a sum of hermite gaussians without having to first create the full laser object. This makes things cleaner and should hopefully speed up calculations.
This should close #215