Commit c5386f78 authored by Reimar Leike's avatar Reimar Leike Committed by Philipp Arras
Browse files

Added the one_over method to MutliField

parent 35cf799b
Pipeline #70650 passed with stages
in 18 minutes and 34 seconds
......@@ -310,6 +310,9 @@ class MultiField(object):
res[key] = -val if neg else val
return MultiField.from_dict(res)
def one_over(self):
return 1/self
def _binary_op(self, other, op):
f = getattr(Field, op)
if isinstance(other, MultiField):
Supports Markdown
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