Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion py360convert/c2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def c2e(
squeeze = False
cube_faces = cube_dice2list(cubemap)
else:
raise ValueError('Unknown cube_format "{cube_format}".')
raise ValueError(f'Unknown cube_format "{cube_format}".')

cube_faces = np.stack(cube_faces)

Expand Down
4 changes: 2 additions & 2 deletions py360convert/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,9 @@ def __call__(self, cube_faces: NDArray[DType]) -> NDArray[DType]:
"""
h, w = cube_faces.shape[-2:]
if h != self._h:
raise ValueError("Input height {h} doesn't match expected height {self._h}.")
raise ValueError(f"Input height {h} doesn't match expected height {self._h}.")
if w != self._w:
raise ValueError("Input width {w} doesn't match expected height {self._w}.")
raise ValueError(f"Input width {w} doesn't match expected height {self._w}.")

if cube_faces.dtype == np.float16:
source_dtype = np.float16
Expand Down