Skip to content

Commit fc345c1

Browse files
erikvansebilleVeckoTheGecko
authored andcommitted
Fixing the error message for update_dt_dtype
The error message in #2242 referred to `set_dt_dtype()`, while the method has been renamed to `update_dt_dtype`. This PR fixed the error message
1 parent b03aa97 commit fc345c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parcels/_core/particleset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def execute(
521521
self._data["dt"][:] = dt
522522
else:
523523
raise ValueError(
524-
f"The dtype of dt ({dt.dtype}) is coarser than the dtype of the particle dt ({self._data['dt'].dtype}). Please use ParticleSet.set_dt_dtype() to provide a dt with at least the same precision as the particle dt."
524+
f"The dtype of dt ({dt.dtype}) is coarser than the dtype of the particle dt ({self._data['dt'].dtype}). Please use ParticleSet.update_dt_dtype() to provide a dt with at least the same precision as the particle dt."
525525
)
526526

527527
if runtime is not None:

0 commit comments

Comments
 (0)