Skip to content

Commit

Permalink
Issue #95: Add new_data as a DataStore class attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzzoQM committed Dec 7, 2023
1 parent ca37e48 commit 68839e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bsk_rl/envs/general_satellite_tasking/scenario/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __init__(self, data_manager: "DataManager", satellite: "Satellite") -> None:

self._initialize_knowledge(data_manager.env_features)
self.data = self.DataType()
self.new_data = self.DataType()

def _initialize_knowledge(self, env_features: "EnvironmentFeatures") -> None:
"""Establish knowledge about the world known to the satellite. Defaults to
Expand Down Expand Up @@ -84,6 +85,7 @@ def internal_update(self) -> "DataType":
self._clear_logs()
new_data = self._compare_log_states(old_log_state, self.log_state)
self.data += new_data
self.new_data = new_data
return new_data

def stage_communicated_data(self, external_data: "DataType") -> None:
Expand Down

0 comments on commit 68839e6

Please sign in to comment.