MCPcopy Create free account
hub / github.com/Gabesarch/ICAL / gridcloud2d_py

Function gridcloud2d_py

TEACh/utils/basic.py:173–181  ·  view source on GitHub ↗
(Y, X)

Source from the content-addressed store, hash-verified

171 return grid_y, grid_x
172
173def gridcloud2d_py(Y, X):
174 # we want to sample for each location in the grid
175 grid_y, grid_x = meshgrid2d_py(Y, X)
176 x = np.reshape(grid_x, [-1])
177 y = np.reshape(grid_y, [-1])
178 # these are N
179 xy = np.stack([x, y], axis=1)
180 # this is N x 2
181 return xy
182
183def normalize_grid3d(grid_z, grid_y, grid_x, Z, Y, X, clamp_extreme=True):
184 # make things in [-1,1]

Callers

nothing calls this directly

Calls 1

meshgrid2d_pyFunction · 0.85

Tested by

no test coverage detected