diff --git a/parcels/field.py b/parcels/field.py index ac9772926..7f31941a6 100644 --- a/parcels/field.py +++ b/parcels/field.py @@ -150,6 +150,9 @@ class Field: * `Nested Fields <../examples/tutorial_NestedFields.ipynb>`__ """ + allow_time_extrapolation: bool + time_periodic: TimePeriodic + def __init__( self, name: str | tuple[str, str], diff --git a/parcels/tools/_helpers.py b/parcels/tools/_helpers.py index 56f2ee490..dd266fd37 100644 --- a/parcels/tools/_helpers.py +++ b/parcels/tools/_helpers.py @@ -99,8 +99,8 @@ def _format_list_items_multiline(items: list[str], level: int = 1) -> str: indentation_str = level * 4 * " " indentation_str_end = (level - 1) * 4 * " " - items = ",\n".join([textwrap.indent(i, indentation_str) for i in items]) - return f"[\n{items}\n{indentation_str_end}]" + items_str = ",\n".join([textwrap.indent(i, indentation_str) for i in items]) + return f"[\n{items_str}\n{indentation_str_end}]" def particleset_repr(pset: ParticleSet) -> str: