Skip to content

Commit c1a746c

Browse files
committed
[JTH] reformat swash files, but still not properly finished
1 parent 8e1ac48 commit c1a746c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bluemath_tk/waves/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def series_regular_monochromatic(waves):
335335
# waves properties
336336
T = waves["T"]
337337
H = waves["H"]
338-
#WL = waves["WL"]
338+
# WL = waves["WL"]
339339
warmup = waves["warmup"]
340340
deltat = waves["deltat"]
341341
tendc = waves["comptime"]

bluemath_tk/wrappers/swash/swash_wrapper.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import xarray as xr
88
from scipy.signal import find_peaks
99

10-
from ...waves.series import series_TMA, waves_dispersion, series_regular_monochromatic
10+
from ...waves.series import series_regular_monochromatic, series_TMA, waves_dispersion
1111
from ...waves.spectra import spectral_analysis
1212
from ...waves.statistics import upcrossing
1313
from .._base_wrappers import BaseModelWrapper
@@ -206,7 +206,7 @@ def build_case(
206206
"gamma": case_context["gamma"],
207207
"deltat": case_context["deltat"],
208208
}
209-
#waves = series_TMA(waves=waves_dict, depth=self.depth_array[0])
209+
# waves = series_TMA(waves=waves_dict, depth=self.depth_array[0])
210210
waves = series_regular_monochromatic(waves=waves_dict)
211211

212212
# Save the waves to a file
@@ -738,9 +738,9 @@ def build_case(self, case_context: dict, case_dir: str) -> None:
738738
# Build the input vegetation file
739739
plants = np.zeros((len(self.depth_array)))
740740
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+
)
744744
] = case_context["Nv"]
745745
np.savetxt(os.path.join(case_dir, "plants.txt"), plants, fmt="%.6f")
746746

0 commit comments

Comments
 (0)