Commit eaa57e72 authored by Reimar Heinrich Leike's avatar Reimar Heinrich Leike

found a bug in linearization where __getitem__ would adjust the value...

found a bug in linearization where __getitem__ would adjust the value correctly but the jacobian incorrectly
parent c4e46aae
......@@ -109,7 +109,7 @@ class Linearization(object):
def __getitem__(self, name):
from .operators.simple_linear_operators import ducktape
return self.new(self._val[name], ducktape(None, self.domain, name))
return self.new(self._val[name], ducktape(None, self.target, name))
def __neg__(self):
return self.new(-self._val, -self._jac,
......
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