Skip to content

Commit

Permalink
fix: use standard spherical coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
jokasimr committed Sep 17, 2024
1 parent 7455339 commit f53d083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scippneutron/absorption/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def compute_transmission_map(
values=sc.concat(
[
sc.sin(theta) * sc.cos(phi),
sc.broadcast(sc.cos(theta), sizes={**phi.sizes, **theta.sizes}),
sc.sin(theta) * sc.sin(phi),
sc.broadcast(sc.cos(theta), sizes={**phi.sizes, **theta.sizes}),
],
dim='row',
)
Expand Down

0 comments on commit f53d083

Please sign in to comment.