Skip to content

Commit daa6613

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b846786 commit daa6613

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

examples/drosophila/preprocessing_wing-disc.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,16 @@
126126

127127
# Apply median filter to the downsampled image
128128
mf_image = median_filter(down_sampled_image, size=3)
129-
mf_image = np.pad(mf_image, ((15, 15), (0, 0), (0, 0)), mode='constant',
130-
constant_values=((0, 0), (0, 0), (0, 0)))
129+
mf_image = np.pad(
130+
mf_image,
131+
((15, 15), (0, 0), (0, 0)),
132+
mode="constant",
133+
constant_values=((0, 0), (0, 0), (0, 0)),
134+
)
131135
mf_image = mf_image * (mf_image > 104)
132-
logger.debug("Applied median filter and padding to the downsampled image and set the threshold as 104")
136+
logger.debug(
137+
"Applied median filter and padding to the downsampled image and set the threshold as 104"
138+
)
133139

134140
# Save the downsampled and filtered image as tif
135141
saving_folder = (

0 commit comments

Comments
 (0)