Skip to content

Commit b51000b

Browse files
author
Jordan DeKraker
committed
typos. I swear my tests were working great at one point ¯\_(ツ)_/¯
1 parent e2c860b commit b51000b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

hippunfold/workflow/scripts/gen_isosurface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def compute_geodesic_distances(vertices, faces, source_indices):
213213
] # really hope there's no x-y switching fuckery here!
214214

215215
# keep vertices that are in a nice coordinate range
216-
epsilon - snakemake.params.coords_epsilon
216+
epsilon = snakemake.params.coords_epsilon
217217
good_v = np.where(np.logical_and(coord_at_V < (1 - epsilon), coord_at_V > epsilon))[0]
218218

219219
# morphological open

hippunfold/workflow/scripts/laplace_beltrami.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,12 @@ def solve_laplace_beltrami_open_mesh(vertices, faces, boundary_conditions=None):
147147

148148
APinds = np.array(np.where(boundary_values < 12)[0]).astype(int)
149149
boundary_conditions = dict(zip(boundary_vertices[APinds], boundary_values[APinds] - 10))
150-
APcoords = np.ones((len(vertices_orig))) * np.nan
151-
APcoords[i_concomp] = solve_laplace_beltrami_open_mesh(
150+
APcoords = solve_laplace_beltrami_open_mesh(
152151
vertices, faces, boundary_conditions
153152
)
154153
PDinds = np.array(np.where(boundary_values > 12)[0]).astype(int)
155154
boundary_conditions = dict(zip(boundary_vertices[PDinds], boundary_values[PDinds] - 20))
156-
PDcoords = np.ones((len(vertices_orig))) * np.nan
157-
PDcoords[i_concomp] = solve_laplace_beltrami_open_mesh(
155+
PDcoords = solve_laplace_beltrami_open_mesh(
158156
vertices, faces, boundary_conditions
159157
)
160158

0 commit comments

Comments
 (0)