You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# we specifically use ScipyParticle because we have many small calls to execute
@@ -30,6 +32,7 @@ def simulate_adcp(
30
32
min_depth: float,
31
33
num_bins: int,
32
34
sample_points: list[Spacetime],
35
+
log_filter: bool=True,
33
36
) ->None:
34
37
"""
35
38
Use Parcels to simulate an ADCP in a fieldset.
@@ -40,6 +43,7 @@ def simulate_adcp(
40
43
:param min_depth: Minimum depth the ADCP can measure.
41
44
:param num_bins: How many samples to take in the complete range between max_depth and min_depth.
42
45
:param sample_points: The places and times to sample at.
46
+
:param log_filter: Whether to filter duplicate log messages (defaults to True). This is a bit of a hack, but it works and could be removed if changed in Parcels.
43
47
"""
44
48
sample_points.sort(key=lambdap: p.time)
45
49
@@ -60,6 +64,12 @@ def simulate_adcp(
60
64
# outputdt set to infinite as we just want to write at the end of every call to 'execute'
:param out_path: The path to write the results to.
41
44
:param depth: The depth at which to measure. 0 is water surface, negative is into the water.
42
45
:param sample_points: The places and times to sample at.
46
+
:param log_filter: Whether to filter duplicate log messages (defaults to True). This is a bit of a hack, but it works and could be removed if changed in Parcels.
0 commit comments