Skip to content

Commit

Permalink
Fix: incorrect start pos tuple was passed to FireConfig.
Browse files Browse the repository at this point in the history
- Note that in simulation.py, we do 'x, y = fire_pos', so we need to ensure this matches when setting the pos for type == 'historical'!
  • Loading branch information
afennelly-mitre committed Nov 19, 2024
1 parent e5b4420 commit 71f7363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simfire/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ def _load_fire(self, pos: Optional[Tuple[int, int]] = None) -> FireConfig:
return FireConfig((pos_x, pos_y), diagonal_spread, max_fire_duration, seed)
elif fire_init_pos_type == "historical":
return FireConfig(
(self.historical_layer.fire_start_y, self.historical_layer.fire_start_x),
(self.historical_layer.fire_start_x, self.historical_layer.fire_start_y),
diagonal_spread,
max_fire_duration,
None,
Expand Down

0 comments on commit 71f7363

Please sign in to comment.