We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b29bf7e commit 01a15f7Copy full SHA for 01a15f7
uxarray/grid/dual.py
@@ -237,7 +237,7 @@ def _order_nodes(
237
d_side = np.dot(node_cross, node_diff)
238
d_dot_norm = np.dot(node_zero, node_diff) / (node_zero_mag * node_diff_mag)
239
240
- # Clamp to valid range for arccos to avoid numerical errors
+ # Clamp to valid range for arccos to avoid numerical errors
241
d_dot_norm = np.clip(d_dot_norm, -1.0, 1.0)
242
243
d_angles[j] = np.arccos(d_dot_norm)
0 commit comments