From 09d971c4039343d90b49dad83bd7511c3699f1fd Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bayle <j2b.bayle@gmail.com> Date: Mon, 22 Feb 2021 23:32:04 +0100 Subject: [PATCH] Remove `ForEachObject.transform()` --- lisainstrument/containers.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lisainstrument/containers.py b/lisainstrument/containers.py index 17de7f8..0f44371 100644 --- a/lisainstrument/containers.py +++ b/lisainstrument/containers.py @@ -38,14 +38,6 @@ class ForEachObject(abc.ABC): """Return list of object indices.""" raise NotImplementedError - def transform(self, transformation): - """Transform dictionary on-the-spot. - - Args: - transformation: function (mosa, value -> new_value) - """ - self.dict = {mosa: transformation(mosa, self[mosa]) for mosa in self.indices()} - def transformed(self, transformation): """Return a new dictionary from transformed objects. -- GitLab