NREL / floris
Showing 1 of 1 files from the diff.

@@ -28,11 +28,12 @@
Loading
28 28
    floris_float_type,
29 29
    floris_array_converter,
30 30
)
31 +
from floris.simulation import BaseClass
31 32
from floris.utilities import Vec3, rotate_coordinates_rel_west
32 33
33 34
34 35
@define
35 -
class Grid(ABC):
36 +
class Grid(ABC, BaseClass):
36 37
    """
37 38
    Grid should establish domain bounds based on given criteria,
38 39
    and develop three arrays to contain components of the grid
@@ -317,9 +318,9 @@
Loading
317 318
    @grid_resolution.validator
318 319
    def grid_resolution_validator(self, instance: attrs.Attribute, value: Sequence) -> None:
319 320
        if np.shape(value) != 2:
320 -
            self.error(ValueError, "FlowFieldPlanarGrid.grid_resolution must contain 3 values.")
321 +
            self.error(ValueError, f"FlowFieldPlanarGrid.grid_resolution must contain 2 values; given value: {value}.")
321 322
        if not all(isinstance(v, int) for v in value):
322 -
            self.error(TypeError, "FlowFieldPlanarGrid.grid_resolution must be all of type: `int`")
323 +
            self.error(TypeError, f"FlowFieldPlanarGrid.grid_resolution must be of type `int`; given value: {value}.")
323 324
324 325
    def set_grid(self) -> None:
325 326
        """
Files Coverage
floris 14.93%
Project Totals (78 files) 14.93%

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