Showing 1 of 2 files from the diff.

@@ -129,16 +129,24 @@
Loading
129 129
                term, expectile=expectile, max_iter=max_iter, verbose=False, **kwargs
130 130
            )
131 131
        else:
132 -
            gam = _gams[
133 -
                distribution, link
134 -
            ]  # doing it like this ensure that user can specify scale
135 -
            kwargs["link"] = link.s
136 -
            kwargs["distribution"] = distribution.s
132 +
            # doing it like this ensure that user can specify scale
133 +
            gam = _gams[distribution, link]
134 +
135 +
            filtered_kwargs = _filter_kwargs(gam.__init__, **kwargs)
136 +
            if len(kwargs) != len(filtered_kwargs):
137 +
                raise TypeError(
138 +
                    f"Invalid arguments `{list(set(kwargs) - set(filtered_kwargs))}` "
139 +
                    f"for `{type(gam).__name__!r}`."
140 +
                )
141 +
142 +
            filtered_kwargs["link"] = link.s
143 +
            filtered_kwargs["distribution"] = distribution.s
144 +
137 145
            model = gam(
138 146
                term,
139 147
                max_iter=max_iter,
140 148
                verbose=False,
141 -
                **_filter_kwargs(gam.__init__, **kwargs),
149 +
                **_filter_kwargs(gam.__init__, **filtered_kwargs),
142 150
            )
143 151
        super().__init__(adata, model=model)
144 152
Files Coverage
cellrank 87.93%
setup.py 0.00%
Project Totals (52 files) 87.81%
2034.10
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
2033.10
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading