-
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
Utility to make laser periodic on the grid #348
base: development
Are you sure you want to change the base?
Conversation
Merge with latest development branch
for more information, see https://pre-commit.ci
# get length of value | ||
try: | ||
Nvalue = len(value) | ||
except: |
Check notice
Code scanning / CodeQL
Except block handles 'BaseException' Note
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.
Any advice on a better way to do this? Sometimes value
will be a scalar and sometimes it will be an array (these cases should be treated separately)
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.
len(list(value))
?
Adds a utility to make the laser periodic over the spatial domain
Periodicity on the grid is enforced by a low-pass spatial Fourier filter. The filter is super-Gaussian with run-time specified super-Gaussian order and FHWM k in each direction.