Skip to content

Commit

Permalink
Pass CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelthreet committed May 16, 2024
1 parent b3c2511 commit fdd7687
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion simfire/utils/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def _load_texture(self) -> np.ndarray:
class HistoricalLayer:
def __init__(
self,
year: int,
year: str,
state: str,
fire: str,
path: Union[Path, str],
Expand Down
13 changes: 4 additions & 9 deletions tests/historical_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import datetime, timedelta
from datetime import timedelta

from simfire.sim.simulation import FireSimulation
from simfire.utils.config import Config
from simfire.utils.layers import HistoricalLayer
Expand All @@ -7,7 +8,7 @@
sim = FireSimulation(config)

hist_layer = HistoricalLayer(
config.historical.year,
str(config.historical.year),
config.historical.state,
config.historical.fire,
config.historical.path,
Expand All @@ -16,9 +17,7 @@
config.operational.width,
)

# Get hist_layer start time
# Set udpate duration to 1m, 1h, whatever makes sense
update_minutes = 12 * 60
update_minutes = 1 * 60
update_interval = f"{update_minutes}m"
update_interval_datetime = timedelta(minutes=update_minutes)
current_time = hist_layer.convert_to_datetime(hist_layer.start_time)
Expand All @@ -30,7 +29,3 @@
sim.fire_map[mitigations != 0] = mitigations[mitigations != 0]
sim.run(update_interval)
current_time += update_interval_datetime
# Loop through simulation
# Update Historical Layer to get mitigations for specifc times (can filter the data frame)

print("done!")

0 comments on commit fdd7687

Please sign in to comment.