Showing 1 of 1 files from the diff.

@@ -181,8 +181,7 @@
Loading
181 181
        for loss in losses:
182 182
            if loss.name in names:
183 183
                raise ValueError(f"Losses should have unique names.")
184 -
            else:
185 -
                names.append(loss.name)
184 +
            names.append(loss.name)
186 185
187 186
            if isinstance(loss, ashpy.losses.SumExecutor):
188 187
                loss: ashpy.losses.SumExecutor
@@ -190,8 +189,7 @@
Loading
190 189
                for subloss_name in sublosses_names:
191 190
                    if loss.name in names:
192 191
                        raise ValueError(f"Losses should have unique names.")
193 -
                    else:
194 -
                        names.append(subloss_name)
192 +
                    names.append(subloss_name)
195 193
196 194
    def _validate_metrics(self):
197 195
        """Check if every metric is an :py:class:`ashpy.metrics.Metric`."""
Files Coverage
src/ashpy 87.17%
Project Totals (56 files) 87.17%
176.1
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
175.1
TRAVIS_PYTHON_VERSION=3.7
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