Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark2000 committed Jun 1, 2024
1 parent 5b91e43 commit 0c59eb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ a.el:visited {

.wy-side-nav-search>div.version {
color: #565A5C;
# CU dark gray
}

.wy-nav-content {
Expand Down
9 changes: 7 additions & 2 deletions src/bsk_rl/gym.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class GeneralSatelliteTasking(Env, Generic[SatObs, SatAct]):
def __init__(
self,
satellites: Union[Satellite, list[Satellite]],
scenario: Scenario = Scenario(),
rewarder: GlobalReward = NoReward(),
scenario: Optional[Scenario] = None,
rewarder: Optional[GlobalReward] = None,
world_type: Optional[type[WorldModel]] = None,
world_args: Optional[dict[str, Any]] = None,
communicator: Optional[CommunicationMethod] = None,
Expand Down Expand Up @@ -91,6 +91,11 @@ def __init__(
self.satellites = satellites
self.simulator: Simulator

if scenario is None:
scenario = Scenario()
if rewarder is None:
rewarder = NoReward()

if world_type is None:
world_type = self._minimum_world_model()
self.world_type = world_type
Expand Down

0 comments on commit 0c59eb7

Please sign in to comment.