#2238 - Fixed the observations issue causing tests to fail

This commit is contained in:
Chris McCarthy
2024-02-28 12:03:58 +00:00
parent 52677538a8
commit d55b6a5b48
3 changed files with 8 additions and 3 deletions

View File

@@ -123,6 +123,8 @@ class NetworkInterface(SimComponent, ABC):
"enabled": self.enabled,
}
)
if CAPTURE_NMNE:
state.update({"nmne": self.nmne})
return state
def reset_component_for_episode(self, episode: int):

View File

@@ -205,7 +205,7 @@ class NIC(IPWiredNetworkInterface):
state = super().describe_state()
# Update the state with NIC-specific information
state.update({"wake_on_lan": self.wake_on_lan, "nmne": self.nmne})
state.update({"wake_on_lan": self.wake_on_lan})
return state