Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ternaus committed Mar 9, 2024
1 parent c44a6da commit 3a7b9f6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions albumentations/augmentations/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,10 @@ def __init__(
super().__init__(always_apply, p)

if not 0 <= snow_point_lower <= snow_point_upper <= 1:
msg = "Invalid combination of snow_point_lower and snow_point_upper. "
f"Got: {(snow_point_lower, snow_point_upper)}"
msg = (
"Invalid combination of snow_point_lower and snow_point_upper. "
f"Got: {(snow_point_lower, snow_point_upper)}"
)
raise ValueError(msg)
if brightness_coeff < 0:
raise ValueError(f"brightness_coeff must be greater than 0. Got: {brightness_coeff}")
Expand Down Expand Up @@ -740,8 +742,10 @@ def __init__(
if not 0 <= angle_lower < angle_upper <= 1:
raise ValueError(f"Invalid combination of angle_lower nad angle_upper. Got: {(angle_lower, angle_upper)}")
if not 0 <= num_flare_circles_lower < num_flare_circles_upper:
msg = "Invalid combination of num_flare_circles_lower nad num_flare_circles_upper. "
f"Got: {(num_flare_circles_lower, num_flare_circles_upper)}"
msg = (
"Invalid combination of num_flare_circles_lower nad num_flare_circles_upper. "
f"Got: {(num_flare_circles_lower, num_flare_circles_upper)}"
)
raise ValueError(msg)

self.flare_center_lower_x = flare_center_lower_x
Expand Down

0 comments on commit 3a7b9f6

Please sign in to comment.