Skip to content

Commit 9c15671

Browse files
committed
Remove Kernel.name in favour of using funcname
1 parent 7bd6252 commit 9c15671

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

parcels/kernel.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ def funcname(self):
9292
ret += f.__name__
9393
return ret
9494

95-
@property #! Ported from v3. To be removed in v4? (/find another way to name kernels in output file)
96-
def name(self):
97-
# return f"{self._ptype.name}{self.funcname}" # TODO v4: Should we propogate the name of the particle to the metadata? At the moment we don't have the concept of naming particles (somewhat incompatible with the .add_variable() API?)
98-
return f"{self.funcname}"
99-
10095
@property
10196
def ptype(self):
10297
return self._ptype

parcels/particleset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def execute(
506506

507507
if output_file is not None:
508508
output_file.set_metadata(self.fieldset.gridset[0]._mesh)
509-
output_file.metadata["parcels_kernels"] = self._kernel.name
509+
output_file.metadata["parcels_kernels"] = self._kernel.funcname
510510

511511
if dt is None:
512512
dt = np.timedelta64(1, "s")

0 commit comments

Comments
 (0)