fix for measurements in the initial state (fix for DFP)
This commit is contained in:
1 parent
7725dabc86
commit
2807c29f27
1 file changed
+1
-1
+1
-1
@@ -371,7 +371,7 @@ class Agent(object):
|
|||||||
'observation': observation
|
'observation': observation
|
||||||
}
|
}
|
||||||
if self.tp.agent.use_measurements:
|
if self.tp.agent.use_measurements:
|
||||||
if 'measurements' in self.curr_state.keys():
|
if 'measurements' in self.env.state.keys():
|
||||||
self.curr_state['measurements'] = self.env.state['measurements']
|
self.curr_state['measurements'] = self.env.state['measurements']
|
||||||
else:
|
else:
|
||||||
self.curr_state['measurements'] = np.zeros(0)
|
self.curr_state['measurements'] = np.zeros(0)
|
||||||
|
|||||||
Reference in new issue
Block a user