Skip to content

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