Skip to content

Commit c6b8c13

Browse files
authored
Update fuzzy_operations.py
1 parent 3cf5a9d commit c6b8c13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fuzzy_logic/fuzzy_operations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from __future__ import annotations
22

33
from dataclasses import dataclass
4+
45
import matplotlib.pyplot as plt
6+
57
import numpy as np
68

79
@dataclass
@@ -41,7 +43,6 @@ def membership(self, x: float) -> float:
4143
elif self.peak < x < self.right_boundary:
4244
return (self.right_boundary - x) / (self.right_boundary - self.peak)
4345

44-
# Assign the message to a variable before raising the exception
4546
msg = f"Invalid value {x} for fuzzy set {self}"
4647
raise ValueError(msg)
4748

0 commit comments

Comments
 (0)