Remove redundant cols from transactions
This commit is contained in:
@@ -168,7 +168,7 @@ class NodeLinkTable(AbstractObservationComponent):
|
||||
f"link_{link_id}_n/a",
|
||||
]
|
||||
for j, serv in enumerate(self.env.services_list):
|
||||
link_labels.append(f"node_{node_id}_service_{serv}_load")
|
||||
link_labels.append(f"link_{link_id}_service_{serv}_load")
|
||||
|
||||
structure.extend(link_labels)
|
||||
return structure
|
||||
|
||||
@@ -318,7 +318,7 @@ class Primaite(Env):
|
||||
datetime.now(), self.agent_identifier, self.episode_count, self.step_count
|
||||
)
|
||||
# Load the initial observation space into the transaction
|
||||
transaction.set_obs_space_pre(self.obs_handler._flat_observation)
|
||||
transaction.set_obs_space(self.obs_handler._flat_observation)
|
||||
|
||||
# Load the action space into the transaction
|
||||
transaction.set_action_space(copy.deepcopy(action))
|
||||
@@ -400,8 +400,6 @@ class Primaite(Env):
|
||||
|
||||
# 7. Update env_obs
|
||||
self.update_environent_obs()
|
||||
# Load the new observation space into the transaction
|
||||
transaction.set_obs_space_post(self.obs_handler._flat_observation)
|
||||
|
||||
# 8. Add the transaction to the list of transactions
|
||||
self.transaction_list.append(copy.deepcopy(transaction))
|
||||
|
||||
Reference in New Issue
Block a user