Skip to content

Commit

Permalink
Update hexrd/xrdutil/phutil.py
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Avery <[email protected]>
  • Loading branch information
saransh13 and psavery authored Nov 13, 2024
1 parent f093910 commit d96f41f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hexrd/xrdutil/phutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def calc_phi_x(bvec, eHat_l):
if np.isclose(bv_norm, 0):
return 0.
else:
bv = bv/np.linalg.norm(bv)
bv = bv / bv_norm
return np.arccos(np.dot(bv, -eHat_l)).item()


Expand Down

0 comments on commit d96f41f

Please sign in to comment.