# -*- coding: utf-8 -*- """ Example 1 tidal case """ import numpy as np from dtocean_hydro import start_logging from dtocean_hydro.input import WP2_SiteData, WP2_MachineData, WP2input from dtocean_hydro.main import WP2 from dtocean_hydro.utils.Coordinates import * # Start the logging system start_logging() # # Lease Area leaseAreaVertexUTM = np.array([[0, 0],[1500., 0],[1500., 230.],[0, 230.]],dtype=float) MinDist = 150 dx = MinDist*4 dy = dx/4 pos = [] for i in range(5): for j in range(5): if not (i)%2: temp = [i*dx,j*dy-dy/2] else: temp = [i*dx,j*dy] pos.append(temp)
def test_start_logging(): start_logging() assert True