We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0719029 commit 9cb19d9Copy full SHA for 9cb19d9
src/guidellm/core/distribution.py
@@ -120,7 +120,7 @@ def min(self) -> float:
120
logger.warning("No data points available to calculate minimum.")
121
return 0.0
122
123
- min_value: float = np.min(self.data)
+ min_value: float = np.min(self.data).item() # type: ignore # noqa: PGH003
124
logger.debug(f"Calculated min: {min_value}")
125
return min_value
126
@@ -134,7 +134,7 @@ def max(self) -> float:
134
logger.warning("No data points available to calculate maximum.")
135
136
137
- max_value: float = np.max(self.data)
+ max_value: float = np.max(self.data).item() # type: ignore # noqa: PGH003
138
logger.debug(f"Calculated max: {max_value}")
139
return max_value
140
0 commit comments