Skip to content

Commit adf47cb

Browse files
committed
Parameter settings not passed and default was used.
User specified parameter setting for tile_size was not passed as an argument and a local default value was used. This commit corrects this issue, function parameter is required and does not have a default value.
1 parent 90615ea commit adf47cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Python/scripts/characterize_data.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def image_to_thumbnail(img, thumbnail_sizes, interpolator, projection_axis):
580580
return res
581581

582582

583-
def image_list_to_faux_volume(image_list, tile_size=[20, 20]):
583+
def image_list_to_faux_volume(image_list, tile_size):
584584
"""
585585
Create a faux volume from a list of images all having the same size.
586586
@@ -955,7 +955,9 @@ def xyz_to_index(x, y, z):
955955
# create summary image and remove the column containing the thumbnail images from the
956956
# dataframe.
957957
if args.create_summary_image:
958-
faux_volume = image_list_to_faux_volume(df["thumbnail"].dropna().to_list())
958+
faux_volume = image_list_to_faux_volume(
959+
df["thumbnail"].dropna().to_list(), args.tile_sizes
960+
)
959961
sitk.WriteImage(
960962
faux_volume,
961963
f"{os.path.splitext(args.output_file)[0]}_summary_image.nrrd",

0 commit comments

Comments
 (0)