mal-simulator 0.2.5__tar.gz → 0.2.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. {mal_simulator-0.2.5/mal_simulator.egg-info → mal_simulator-0.2.6}/PKG-INFO +1 -1
  2. {mal_simulator-0.2.5 → mal_simulator-0.2.6/mal_simulator.egg-info}/PKG-INFO +1 -1
  3. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/__init__.py +2 -2
  4. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/mal_simulator.py +4 -2
  5. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/pyproject.toml +1 -1
  6. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/AUTHORS +0 -0
  7. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/LICENSE +0 -0
  8. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/README.md +0 -0
  9. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/mal_simulator.egg-info/SOURCES.txt +0 -0
  10. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/mal_simulator.egg-info/dependency_links.txt +0 -0
  11. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/mal_simulator.egg-info/entry_points.txt +0 -0
  12. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/mal_simulator.egg-info/requires.txt +0 -0
  13. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/mal_simulator.egg-info/top_level.txt +0 -0
  14. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/__main__.py +0 -0
  15. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/agents/__init__.py +0 -0
  16. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/agents/decision_agent.py +0 -0
  17. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/agents/heuristic_agent.py +0 -0
  18. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/agents/keyboard_input.py +0 -0
  19. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/agents/passive_agent.py +0 -0
  20. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/agents/searchers.py +0 -0
  21. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/envs/__init__.py +0 -0
  22. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/envs/base_classes.py +0 -0
  23. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/envs/gym_envs.py +0 -0
  24. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/envs/malsim_vectorized_obs_env.py +0 -0
  25. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/malsim/scenario.py +0 -0
  26. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/setup.cfg +0 -0
  27. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/tests/test_main.py +0 -0
  28. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/tests/test_mal_simulator.py +0 -0
  29. {mal_simulator-0.2.5 → mal_simulator-0.2.6}/tests/test_scenario.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mal-simulator
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: A MAL compliant simulator.
5
5
  Author-email: Andrei Buhaiu <buhaiu@kth.se>, Joakim Loxdal <loxdal@kth.se>, Jakob Nyberg <jaknyb@kth.se>, Nikolaos Kakouros <nkak@kth.se>
6
6
  License: Apache Software License
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mal-simulator
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: A MAL compliant simulator.
5
5
  Author-email: Andrei Buhaiu <buhaiu@kth.se>, Joakim Loxdal <loxdal@kth.se>, Jakob Nyberg <jaknyb@kth.se>, Nikolaos Kakouros <nkak@kth.se>
6
6
  License: Apache Software License
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # MAL Simulator v0.2.5
2
+ # MAL Simulator v0.2.6
3
3
  # Copyright 2025, Andrei Buhaiu.
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -24,7 +24,7 @@ MAL Simulator
24
24
  """
25
25
 
26
26
  __title__ = "malsim"
27
- __version__ = "0.2.5"
27
+ __version__ = "0.2.6"
28
28
  __authors__ = ["Andrei Buhaiu", "Joakim Loxdal", "Jakob Nyberg", "Nikolaos Kakouros"]
29
29
  __license__ = "Apache 2.0"
30
30
  __docformat__ = "restructuredtext en"
@@ -228,7 +228,8 @@ class MalSimulator():
228
228
  for agent in self._get_attacker_agents():
229
229
  attacker = agent.attacker
230
230
  agent.reward = sum(
231
- n.extras.get("reward", 0) for n in attacker.reached_attack_steps
231
+ n.extras.get("reward", 0)
232
+ for n in attacker.reached_attack_steps
232
233
  )
233
234
 
234
235
  lost_reward = sum(
@@ -238,7 +239,8 @@ class MalSimulator():
238
239
  )
239
240
 
240
241
  for agent in self._get_defender_agents():
241
- agent.reward = lost_reward
242
+ # Defenders get negative reward for pre-enabled nodes
243
+ agent.reward = -lost_reward
242
244
 
243
245
  def _init_agent_action_surfaces(self):
244
246
  """Set agent action surfaces according to current state"""
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mal-simulator"
3
- version = "0.2.5"
3
+ version = "0.2.6"
4
4
  authors = [
5
5
  { name="Andrei Buhaiu", email="buhaiu@kth.se" },
6
6
  { name="Joakim Loxdal", email="loxdal@kth.se" },
File without changes
File without changes
File without changes
File without changes