Commit c5fa3062 authored by PIOLLE's avatar PIOLLE
Browse files

fixed bad method call in Field.rename

parent e198232c
......@@ -830,7 +830,7 @@ class Field(object):
if self.dataset is not None:
if self.name not in self.dataset.fieldnames:
raise ValueError("Field {} not existing".format(self.name))
self.dataset.rename({self.name: newname})
self.dataset.rename_field({self.name: newname})
self.name = newname
def __add__(self, other: 'Field') -> 'Field':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment