Skip to content

Commit

Permalink
Use np.longdouble as np.float128 alias not present on some systems
Browse files Browse the repository at this point in the history
  • Loading branch information
bjheinen committed Jun 4, 2024
1 parent 364f5d7 commit 4418d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LiquidDiffract/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def calc_self_shielding(Q, mu, alpha, thickness, wavelength):
Returns:
attenuation - Self-shielding attenuation factor A_s,s
'''
Q = Q.astype(np.float128)
Q = Q.astype(np.longdouble)
# Convert alpha to radians
alpha = np.radians(alpha)
# Get two theta values for Q-space data
Expand Down

0 comments on commit 4418d88

Please sign in to comment.