Skip to content
Snippets Groups Projects
Commit 09d971c4 authored by Jean-Baptiste Bayle's avatar Jean-Baptiste Bayle
Browse files

Remove `ForEachObject.transform()`

parent e6761063
No related branches found
No related tags found
1 merge request!16Fix `left_mosa` and `right_mosa`
Pipeline #106071 passed
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment