Skip to content

Commit 0f988a9

Browse files
committed
Merge branch 'feature/v0.2.6' into develop
2 parents 4d56f87 + 3704f1f commit 0f988a9

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

colour_hdri/models/dng.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,12 @@ def camera_neutral_to_xy(
415415
if np.abs(np.sum(xy_p - xy)) <= epsilon:
416416
return xy
417417

418-
msg = (
418+
exception = (
419419
f'"Camera Neutral" coordinates "{xy}" did not converge to "xy" white '
420420
f"balance chromaticity coordinates!"
421421
)
422-
raise RuntimeError(msg)
422+
423+
raise RuntimeError(exception)
423424

424425

425426
def matrix_XYZ_to_camera_space(

colour_hdri/utilities/exif.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,10 @@ def parse_exif_data(data: str) -> List:
247247
search.group("value"),
248248
)
249249
]
250-
msg = "The EXIF data output cannot be parsed!"
251-
raise ValueError(msg)
250+
251+
exception = "The EXIF data output cannot be parsed!"
252+
253+
raise ValueError(exception)
252254

253255

254256
def read_exif_tags(image: str, numeric: bool = False) -> defaultdict:

colour_hdri/utilities/image.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,10 @@ def read_data(self, cctf_decoding: Callable | None = None) -> NDArrayFloat:
264264
self.data = data
265265

266266
return cast(NDArrayFloat, data)
267-
msg = 'The image "path" is undefined!'
268-
raise ValueError(msg)
267+
268+
exception = 'The image "path" is undefined!'
269+
270+
raise ValueError(exception)
269271

270272
def read_metadata(self) -> Metadata:
271273
"""
@@ -283,8 +285,9 @@ def read_metadata(self) -> Metadata:
283285
"""
284286

285287
if self._path is None:
286-
msg = 'The image "path" is undefined!'
287-
raise ValueError(msg)
288+
exception = 'The image "path" is undefined!'
289+
290+
raise ValueError(exception)
288291

289292
LOGGER.info('Reading "%s" image metadata.', self._path)
290293

0 commit comments

Comments
 (0)