Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ persistent=yes
# Specify a configuration file.
#rcfile=

# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages
suggestion-mode=yes

# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no
Expand Down
7 changes: 1 addition & 6 deletions src/xarray_einstats/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,12 +1019,7 @@ def pinv(da, dims=None, *, rcond=None, rtol=None, hermitian=False, **kwargs):
if isinstance(rtol, xr.DataArray):
da, rtol = xr.broadcast(da, rtol, exclude=set(dims))
pinv_kwargs["rtol"] = rtol
print(da)
print("\n")
print(rcond)
print("\n")
print(rtol)
print("------------------------\n")

return xr.apply_ufunc(
np.linalg.pinv,
da,
Expand Down
6 changes: 2 additions & 4 deletions src/xarray_einstats/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ def _add_documented_method(cls, wrapped_cls, methods, extra_docs=None):
setattr(cls, method_name, method)


doc_extras = {
"rvs": """
doc_extras = {"rvs": """
Parameters
----------
*args : scalar or array_like or DataArray, optional
Expand All @@ -372,8 +371,7 @@ def _add_documented_method(cls, wrapped_cls, methods, extra_docs=None):
Passed to :func:`xarray.apply_ufunc`
**kwargs
Passed to the scipy distribution after broadcasting using the same key.
"""
}
"""}
base_methods = ["cdf", "logcdf", "sf", "logsf", "ppf", "isf", "rvs"]
_add_documented_method(XrRV, "rv_generic", base_methods, doc_extras)
_add_documented_method(
Expand Down
1 change: 1 addition & 0 deletions tests/test_accessors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pylint: disable=redefined-outer-name, no-self-use
"""Test the accessors."""

from importlib.util import find_spec

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/test_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pylint: disable=redefined-outer-name, no-self-use
"""Test top level functions."""

import numpy as np
import pytest

Expand Down
1 change: 1 addition & 0 deletions tests/test_linalg.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pylint: disable=redefined-outer-name, no-self-use, too-many-public-methods
"""Test the linalg module."""

import numpy as np
import packaging
import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_numba.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pylint: disable=redefined-outer-name, no-self-use
"""Test the numba module."""

import numpy as np
import pytest

Expand Down
1 change: 1 addition & 0 deletions tests/test_stats.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pylint: disable=redefined-outer-name, no-self-use, too-many-positional-arguments
"""Test the stats module."""

import warnings

import numpy as np
Expand Down