Skip to content

Commit

Permalink
fix: today timestamp AND path to shapely countries
Browse files Browse the repository at this point in the history
  • Loading branch information
tillwenke committed Jan 9, 2025
1 parent a47caa7 commit 253473c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heatchmap/gpmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ def __init__(self, region="world", resolution=10, version="prod"):
self.begin = latest_date

self.batch_size = 10000
self.today = pd.Timestamp("2024-3-30")
self.today = pd.Timestamp.now()
self.map_path = f"intermediate/map_{self.method}_{self.region}_{self.resolution}_{self.version}_{self.today.date()}.txt"

self.recalc_radius = 800000 # TODO: determine from model largest influence radius

here = {os.path.dirname(os.path.abspath(__file__))}
here = os.path.dirname(os.path.abspath(__file__))
self.shapely_countries = f"{here}/cache/countries/ne_110m_admin_0_countries.shp"

if not os.path.exists(self.shapely_countries):
Expand Down

0 comments on commit 253473c

Please sign in to comment.