Skip to content

Commit

Permalink
Update data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sgbaird committed Jun 23, 2022
1 parent db1013a commit adad563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xtal2png/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def get_image_mode(d: np.ndarray) -> str:
--------
>>> d = np.zeros((1, 64, 64), dtype=np.uint8) # grayscale image
>>> mode = get_image_mode(d)
OUTPUT
"L"
"""
if d.ndim != 3:
raise ValueError("expected an array with 3 dimensions, received {d.ndim} dims")
Expand Down

0 comments on commit adad563

Please sign in to comment.