Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 7, 2025
1 parent 2fab6dd commit 794f645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/data/image_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ def _get_array_data(self, img, filename):
f.read(buffer, expected_pixel_data_length, offset)

data = buffer.view(dtype).reshape((number_of_frames, rows, columns))

else:
if not hasattr(img, "pixel_array"):
raise ValueError(f"dicom data: {filename} does not have pixel_array.")
Expand Down

0 comments on commit 794f645

Please sign in to comment.