tidy3d.plugins.autograd.utilities.get_kernel_size_px#
- class get_kernel_size_px[source]#
Bases:
Calculate the kernel size in pixels based on the provided radius and grid spacing.
- Parameters:
- Returns:
The size of the kernel in pixels for each dimension. Returns an integer if the radius is scalar, otherwise a list of integers.
- Return type:
- Raises:
ValueError – If either ‘radius’ or ‘dl’ is not provided.