diff --git a/.vscode/settings.json b/.vscode/settings.json index cc503e6..9707993 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -23,4 +23,4 @@ "files.trimFinalNewlines": true, "editor.defaultFormatter": "", "files.trimTrailingWhitespace": true, -} \ No newline at end of file +} diff --git a/cyberbattle/agents/baseline/notebooks/notebook_dql_debug.py b/cyberbattle/agents/baseline/notebooks/notebook_dql_debug.py index d9f0c7e..d8712fe 100644 --- a/cyberbattle/agents/baseline/notebooks/notebook_dql_debug.py +++ b/cyberbattle/agents/baseline/notebooks/notebook_dql_debug.py @@ -78,7 +78,7 @@ current_o, info = ctf_env.reset() wrapped_env = AgentWrapper(ctf_env, ActionTrackingStateAugmentation(ep, current_o)) -l = dqn_learning_run["learner"] +_l = dqn_learning_run["learner"] # %% # Use the trained agent to run the steps one by one @@ -89,7 +89,7 @@ h = [] for i in range(max_steps): # run the suggested action - _, next_action, _ = l.exploit(wrapped_env, current_o) + _, next_action, _ = _l.exploit(wrapped_env, current_o) h.append( ( ctf_env.get_explored_network_node_properties_bitmap_as_numpy(current_o), diff --git a/pyproject.toml b/pyproject.toml index 88ef681..b5e63f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,4 +3,4 @@ line-length = 200 exclude = [ "typings", "venv" -] \ No newline at end of file +] diff --git a/pyrightconfig.json b/pyrightconfig.json index f97288d..8398b7c 100644 --- a/pyrightconfig.json +++ b/pyrightconfig.json @@ -21,4 +21,4 @@ "reportIncompatibleVariableOverride": "information", "strictParameterNoneValue": true, "strict": [] -} \ No newline at end of file +}