From 71f736366cacd46c071f18ad2226e732db905343 Mon Sep 17 00:00:00 2001 From: Aidan Fennelly Date: Tue, 19 Nov 2024 16:01:07 -0500 Subject: [PATCH] Fix: incorrect start pos tuple was passed to FireConfig. - 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'! --- simfire/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simfire/utils/config.py b/simfire/utils/config.py index 7e563ef..444ffe4 100644 --- a/simfire/utils/config.py +++ b/simfire/utils/config.py @@ -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,