Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Jul 7, 2023
1 parent d584a36 commit f1265c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/safeds/data/image/containers/_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@ def add_gaussian_noise(self, standard_deviation: float) -> Image:

# noinspection PyTypeChecker
image_as_array = np.asarray(self._image)
noisy_image_as_array = random_noise(image_as_array, mode="gaussian", var=standard_deviation**2, rng=42, clip=True)
noisy_image_as_array = random_noise(
image_as_array, mode="gaussian", var=standard_deviation**2, rng=42, clip=True,
)
noisy_image = PIL.Image.fromarray(np.uint8(255 * noisy_image_as_array))

image_copy = copy.deepcopy(self)
Expand Down

0 comments on commit f1265c2

Please sign in to comment.