Skip to content

Commit 3c47c68

Browse files
authored
Merge pull request #127 from mal-lang/nkakouros-patch-1
Fix typos
2 parents 42438dc + aff7533 commit 3c47c68

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

malsim/mal_simulator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def _attacker_reward(attacker_state: MalSimAttackerState):
481481
"""
482482
Calculate current attacker reward by adding this steps
483483
compromised node rewards to the previous attacker reward.
484-
Can be overriden by subclass to implement custom reward function.
484+
Can be overridden by subclass to implement custom reward function.
485485
486486
Args:
487487
- attacker_state: the attacker state before nodes were compromised
@@ -499,7 +499,7 @@ def _defender_reward(defender_state: MalSimDefenderState):
499499
"""
500500
Calculate current defender reward by subtracting this steps
501501
compromised/enabled node rewards from the previous defender reward.
502-
Can be overriden by subclass to implement custom reward function.
502+
Can be overridden by subclass to implement custom reward function.
503503
504504
Args:
505505
- defender_state: the defender state before defenses were enabled
@@ -517,7 +517,7 @@ def _defender_reward(defender_state: MalSimDefenderState):
517517
@staticmethod
518518
def _attacker_is_terminated(attacker_state: MalSimAttackerState) -> bool:
519519
"""Check if attacker is terminated
520-
Can be overriden by subclass for custom termination condition.
520+
Can be overridden by subclass for custom termination condition.
521521
522522
Args:
523523
- attacker_state: the attacker state to check for termination
@@ -530,7 +530,7 @@ def _defender_is_terminated(
530530
attacker_agent_states: list[MalSimAttackerState]
531531
) -> bool:
532532
"""Check if defender is terminated
533-
Can be overriden by subclass for custom termination condition.
533+
Can be overridden by subclass for custom termination condition.
534534
535535
Args:
536536
- defender_state: the defender state to check for termination

tests/test_scenario.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_load_scenario_observability_given():
142142
"""Load a scenario with observability settings given and
143143
make sure observability is applied correctly"""
144144

145-
# Load scenario with observability specifed
145+
# Load scenario with observability specified
146146
attack_graph, _ = load_scenario(
147147
path_relative_to_tests(
148148
'./testdata/scenarios/simple_filtered_observability_scenario.yml')

0 commit comments

Comments
 (0)