Skip to content

Commit d3ddff6

Browse files
committed
variable naming
1 parent 2da15ae commit d3ddff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

episodes/07-thresholding.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,10 @@ def measure_root_mass(filename, sigma=1.0):
466466
binary_mask = blurred_image > t
467467

468468
# determine root mass ratio
469-
rootPixels = np.count_nonzero(binary_mask)
469+
root_pixels = np.count_nonzero(binary_mask)
470470
w = binary_mask.shape[1]
471471
h = binary_mask.shape[0]
472-
density = rootPixels / (w * h)
472+
density = root_pixels / (w * h)
473473

474474
return density
475475
```

0 commit comments

Comments
 (0)