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

Utility to make laser periodic on the grid #348

Open
wants to merge 13 commits into
base: development
Choose a base branch
from

Conversation

kale-j
Copy link
Contributor

@kale-j kale-j commented Jan 23, 2025

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.

# get length of value
try:
Nvalue = len(value)
except:

Check notice

Code scanning / CodeQL

Except block handles 'BaseException' Note

Except block directly handles BaseException.
Copy link
Contributor Author

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)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

len(list(value))?

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