|
7 | 7 | import xarray as xr |
8 | 8 | from scipy.signal import find_peaks |
9 | 9 |
|
10 | | -from ...waves.series import series_TMA, waves_dispersion, series_regular_monochromatic |
| 10 | +from ...waves.series import series_regular_monochromatic, series_TMA, waves_dispersion |
11 | 11 | from ...waves.spectra import spectral_analysis |
12 | 12 | from ...waves.statistics import upcrossing |
13 | 13 | from .._base_wrappers import BaseModelWrapper |
@@ -206,7 +206,7 @@ def build_case( |
206 | 206 | "gamma": case_context["gamma"], |
207 | 207 | "deltat": case_context["deltat"], |
208 | 208 | } |
209 | | - #waves = series_TMA(waves=waves_dict, depth=self.depth_array[0]) |
| 209 | + # waves = series_TMA(waves=waves_dict, depth=self.depth_array[0]) |
210 | 210 | waves = series_regular_monochromatic(waves=waves_dict) |
211 | 211 |
|
212 | 212 | # Save the waves to a file |
@@ -738,9 +738,9 @@ def build_case(self, case_context: dict, case_dir: str) -> None: |
738 | 738 | # Build the input vegetation file |
739 | 739 | plants = np.zeros((len(self.depth_array))) |
740 | 740 | plants[ |
741 | | - int( |
742 | | - case_context["Plants_end"] - case_context["Wv"] |
743 | | - ) : int(case_context["Plants_end"]) |
| 741 | + int(case_context["Plants_end"] - case_context["Wv"]) : int( |
| 742 | + case_context["Plants_end"] |
| 743 | + ) |
744 | 744 | ] = case_context["Nv"] |
745 | 745 | np.savetxt(os.path.join(case_dir, "plants.txt"), plants, fmt="%.6f") |
746 | 746 |
|
|
0 commit comments