Skip to content

Commit

Permalink
BUG: failing test - only pythonic api knows PathLike paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dyollb committed Oct 13, 2021
1 parent 051ad61 commit 0178cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wrapping/Generators/Python/Tests/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def custom_callback(name, progress):
assert png_io.GetFileName() == filename

# test reading image series
series_reader = itk.ImageSeriesReader.New(FileNames=[pathlib.Path(filename), pathlib.Path(filename)])
series_reader = itk.ImageSeriesReader.New(FileNames=[filename, filename])
series_reader.Update()
assert series_reader.GetOutput().GetImageDimension() == 3
assert series_reader.GetOutput().GetLargestPossibleRegion().GetSize()[2] == 2
Expand All @@ -227,7 +227,7 @@ def custom_callback(name, progress):
assert series_reader.GetOutput().GetImageDimension() == 3

# test reading image series with itk.imread()
image_series = itk.imread([filename, filename])
image_series = itk.imread([pathlib.Path(filename), pathlib.Path(filename)])
assert image_series.GetImageDimension() == 3

# Numeric series filename generation without any integer index. It is
Expand Down

0 comments on commit 0178cf0

Please sign in to comment.