Skip to content

Commit

Permalink
fix: update tell to remove super
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Apr 13, 2024
1 parent db83812 commit 1a4a711
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pdf_agents/scientific_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ def _value_function(self, X, Y):
return scientific_value_function(X, Y, y_distance_function=self.observable_distance_function)

def tell(self, x, y):
return PassiveKmeansAgent.tell(self, x, y)
"""Update tell using relative info"""
x = x - self._motor_origins
doc = super().tell(x, y)
doc["absolute_position_offset"] = self._motor_origins
return doc

def report(self):
value = self._value_function(np.array(self.independent_cache), np.array(self.observable_cache))
Expand Down

0 comments on commit 1a4a711

Please sign in to comment.