src/core/hydrodynamics/transect.py
def initiate(self):
        """
        Initialize the working model.
        In this case, read the spatial configuration and the forcings
        from files. Set the computing environment.
        """
        csv: np.ndarray = np.genfromtxt(self.config_file, delimiter=",", skip_header=1)
        self.x_coordinates = csv[:, 0]
        self.y_coordinates = csv[:, 1]
        self.water_depth = csv[:, 2]
        self.outpoint = csv[:, 3] == 1

        forcings: np.ndarray = np.genfromtxt(
            self.definition_file, delimiter=",", skip_header=1
        )
        self.stormcat = forcings[:, 0]
        self.return_period = forcings[:, 1]
        self.wave_height = forcings[:, 2]
        self.wave_period = forcings[:, 3]
        self.wave_angle = forcings[:, 4]
        self.max_curr_vel = forcings[:, 5]

        Initialize the working model.
        In this case, read the spatial configuration and the forcings
        from files. Set the computing environment.
        
Initialize the working model.
In this case, read the spatial configuration and the forcings
from files. Set the computing environment.
Initialize the working model . In this case read the spatial configuration and the forcings from files . Set the computing environment .
def initiate(self):
        csv: np.ndarray = np.genfromtxt(self.config_file, delimiter=",", skip_header=1)
        self.x_coordinates = csv[:, 0]
        self.y_coordinates = csv[:, 1]
        self.water_depth = csv[:, 2]
        self.outpoint = csv[:, 3] == 1
        forcings: np.ndarray = np.genfromtxt(
            self.definition_file, delimiter=",", skip_header=1
        )
        self.stormcat = forcings[:, 0]
        self.return_period = forcings[:, 1]
        self.wave_height = forcings[:, 2]
        self.wave_period = forcings[:, 3]
        self.wave_angle = forcings[:, 4]
        self.max_curr_vel = forcings[:, 5]
def initiate ( self ) : csv : np . ndarray = np . genfromtxt ( self . config_file , delimiter = "," , skip_header = 1 ) self . x_coordinates = csv [ : , 0 ] self . y_coordinates = csv [ : , 1 ] self . water_depth = csv [ : , 2 ] self . outpoint = csv [ : , 3 ] == 1 forcings : np . ndarray = np . genfromtxt ( self . definition_file , delimiter = "," , skip_header = 1 ) self . stormcat = forcings [ : , 0 ] self . return_period = forcings [ : , 1 ] self . wave_height = forcings [ : , 2 ] self . wave_period = forcings [ : , 3 ] self . wave_angle = forcings [ : , 4 ] self . max_curr_vel = forcings [ : , 5 ]
Initialize the working model.
Initialize the working model .
"""
        Initialize the working model.
        In this case, read the spatial configuration and the forcings
        from files. Set the computing environment.
        """
self