Merged PR 94: Fix ier reward calculation
## Summary Logic error with negation of booleans. ## Test process Run with debug logging to verify that no longer getting warnings about reference IERS being blocked. ## Checklist - [x] This PR is linked to a **work item** - [x] I have performed **self-review** of the code - [ ] I have written **tests** for any new functionality added with this PR - [ ] I have updated the **documentation** if this PR changes or adds functionality - [x] I have run **pre-commit** checks for code style Fix ier reward calculation Related work items: #1554
This commit is contained in:
@@ -78,8 +78,8 @@ def calculate_reward_function(
|
||||
start_step = ier_value.get_start_step()
|
||||
stop_step = ier_value.get_end_step()
|
||||
if step_count >= start_step and step_count <= stop_step:
|
||||
reference_blocked = reference_ier.get_is_running()
|
||||
live_blocked = ier_value.get_is_running()
|
||||
reference_blocked = not reference_ier.get_is_running()
|
||||
live_blocked = not ier_value.get_is_running()
|
||||
ier_reward = (
|
||||
config_values.green_ier_blocked * ier_value.get_mission_criticality()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user