Skip to content

Commit

Permalink
Quick fixes for failing tests for distribution regression (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
markurtz authored Aug 28, 2024
1 parent 0719029 commit 9cb19d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/guidellm/core/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def min(self) -> float:
logger.warning("No data points available to calculate minimum.")
return 0.0

min_value: float = np.min(self.data)
min_value: float = np.min(self.data).item() # type: ignore # noqa: PGH003
logger.debug(f"Calculated min: {min_value}")
return min_value

Expand All @@ -134,7 +134,7 @@ def max(self) -> float:
logger.warning("No data points available to calculate maximum.")
return 0.0

max_value: float = np.max(self.data)
max_value: float = np.max(self.data).item() # type: ignore # noqa: PGH003
logger.debug(f"Calculated max: {max_value}")
return max_value

Expand Down

0 comments on commit 9cb19d9

Please sign in to comment.