Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed May 21, 2024
1 parent 655e3da commit cf6c276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions pint/facets/numpy/numpy_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,9 +1011,7 @@ def implementation(a, *args, **kwargs):
"linalg.norm",
):
implement_func("function", func_str, input_units=None, output_unit="sum")
for func_str in ("diff", "ediff1d",
"std",
"nanstd",):
for func_str in ("diff", "ediff1d", "std", "nanstd"):
implement_func("function", func_str, input_units=None, output_unit="delta")
for func_str in ("gradient",):
implement_func("function", func_str, input_units=None, output_unit="delta,div")
Expand Down
3 changes: 1 addition & 2 deletions pint/testsuite/test_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,6 @@ def test_var_numpy_func(self):
assert np.var(self.q) == 1.25 * self.ureg.m**2
assert np.var(self.q_temperature) == 1.25 * self.ureg.delta_degC**2


@helpers.requires_array_function_protocol()
def test_nanvar_numpy_func(self):
helpers.assert_quantity_almost_equal(
Expand All @@ -879,7 +878,7 @@ def test_std_numpy_func(self):
np.std(self.q), 1.11803 * self.ureg.m, rtol=1e-5
)
helpers.assert_quantity_almost_equal(
np.std(self.q_temperature) , 1.11803 * self.ureg.delta_degC, rtol=1e-5
np.std(self.q_temperature), 1.11803 * self.ureg.delta_degC, rtol=1e-5
)

def test_cumprod(self):
Expand Down

0 comments on commit cf6c276

Please sign in to comment.