Skip to content
Draft
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion uxarray/grid/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,4 +757,4 @@ def points_atleast_2d_xyz(points):
"Points are neither Cartesian (shape N x 3) nor Spherical (shape N x 2)."
)

return points_xyz
return np.ascontiguousarray(points_xyz)
1 change: 1 addition & 0 deletions uxarray/grid/point_in_face.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def _point_in_face_query(
Number of valid face‐hits per point.
"""
pts = np.asarray(points, dtype=np.float64)
pts = np.ascontiguousarray(pts)
if pts.ndim == 1:
pts = pts[np.newaxis, :]
# Cull with k-d tree
Expand Down
5 changes: 4 additions & 1 deletion uxarray/plot/matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ def _get_points_from_axis(ax: GeoAxes, *, pixel_ratio: float = 1):
xs = np.cos(lats) * np.cos(lons)
ys = np.cos(lats) * np.sin(lons)
zs = np.sin(lats)
pts = np.vstack((xs, ys, zs)).T

# TODO:
pts = np.column_stack((xs, ys, zs))
# pts = np.vstack((xs, ys, zs)).T

return pts, valid, nx, ny

Expand Down
Loading