Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/quvac/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ def cartesian_to_spherical_array(
if not spherical_grid:
dk = np.min(xyz_grid.dkxkykz)
kmax = np.max(xyz_grid.kabs)
dangle = angular_resolution if angular_resolution else 1.0 * pi / 180
# dangle = angular_resolution if angular_resolution else 1.0 * pi / 180
default_resolution = dk / kmax
dangle = angular_resolution if angular_resolution else default_resolution

k = np.arange(0.0, kmax, dk, dtype=config.FDTYPE)
theta = np.arange(0.0, pi, dangle, dtype=config.FDTYPE)
Expand Down
Loading