Skip to content

class_trimming.py

Contains a abstract class to define strategies to trim a grid.

StrategyTrimming

A abstract class to define strategies to trim a grid.

Source code in src/smiffer/grid/trimming_strategy/class_trimming.py
14
15
16
17
18
19
20
21
22
23
24
25
class StrategyTrimming:
    """A abstract class to define strategies to trim a grid."""

    @abstractmethod
    def trim_box(self, grid_object):
        """Define a abstract method in order to trim a grid.

        Parameters
        ----------
        grid_object : `Grid`
            The grid object to access all attributes.
        """

trim_box(grid_object) abstractmethod

Define a abstract method in order to trim a grid.

Parameters

grid_object : Grid
The grid object to access all attributes.

Source code in src/smiffer/grid/trimming_strategy/class_trimming.py
17
18
19
20
21
22
23
24
25
@abstractmethod
def trim_box(self, grid_object):
    """Define a abstract method in order to trim a grid.

    Parameters
    ----------
    grid_object : `Grid`
        The grid object to access all attributes.
    """