Files
python-pint/0001-add-min-and-max-to-the-array-function-overrides.patch

26 lines
827 B
Diff

From 9ace880dfa2a57772f1c2cac1316338995baf1fb Mon Sep 17 00:00:00 2001
From: Justus Magin <keewis@posteo.de>
Date: Tue, 7 Mar 2023 13:24:37 +0100
Subject: [PATCH] add `min` and `max` to the array function overrides
---
pint/numpy_func.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pint/numpy_func.py b/pint/numpy_func.py
index e09decb..ccc99b9 100644
--- a/pint/numpy_func.py
+++ b/pint/numpy_func.py
@@ -805,6 +805,8 @@ for func_str, unit_arguments, wrap_output in [
("broadcast_to", ["array"], True),
("amax", ["a", "initial"], True),
("amin", ["a", "initial"], True),
+ ("max", ["a", "initial"], True),
+ ("min", ["a", "initial"], True),
("searchsorted", ["a", "v"], False),
("isclose", ["a", "b"], False),
("nan_to_num", ["x", "nan", "posinf", "neginf"], True),
--
2.41.0