Skip to content

Commit 2dda06f

Browse files
committed
Clean up test_process_image.py
1 parent 821440a commit 2dda06f

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

tests/test_process_image.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -379,17 +379,10 @@ def spy_plot(self, *args, **kwargs):
379379
index=fib_feat_df.index,
380380
)
381381

382-
# --- Also reconstruct fiber_structure with the columns generate_overlay expects ---
383-
#
384-
# generate_overlay reads fiber_structure["center_row"] / ["center_col"] (or
385-
# ["center_1"] / ["center_2"] for FIRE mode) to get fiber centers.
386-
# fib_feat_df stores these as "end_point_row" / "end_point_col" (see save_fiber_features).
387-
# We build a minimal fiber_structure DataFrame with the right column names so that
388-
# generate_overlay can locate fiber centers correctly.
382+
# Reconstructing fiber_structure to be in a format that generate_overlay
383+
# expects: "fiber_absolute_angle" is changed to "angle" (see save_fiber_features)
389384
fiber_structure = fib_feat_df.rename(
390385
columns={
391-
"end_point_row": "center_row",
392-
"end_point_col": "center_col",
393386
"fiber_absolute_angle": "angle",
394387
}
395388
)
@@ -423,15 +416,6 @@ def spy_plot(self, *args, **kwargs):
423416
f"make_associations=True and {len(valid_fibers)} fibers have boundary points."
424417
)
425418

426-
# --- Verify coordinate ordering for every fiber with a valid boundary point ---
427-
#
428-
# Expected ax.plot call for fiber at (center_row, center_col) → (bp_row, bp_col):
429-
# x = [center_col, boundary_point_col]
430-
# y = [center_row, boundary_point_row]
431-
#
432-
# We read from the same DataFrames passed into generate_overlay (fiber_structure
433-
# and measured_boundary) so the test is consistent with what the function sees.
434-
435419
expected_lines = []
436420
for idx in valid_fibers.index:
437421
center_row = fiber_structure.at[idx, "center_row"]

0 commit comments

Comments
 (0)