Skip to content

Commit

Permalink
updated module names
Browse files Browse the repository at this point in the history
  • Loading branch information
jmineau committed Aug 13, 2024
1 parent 087a6b5 commit 3dd6774
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lair/air/stilt.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from lair.config import STILT_DIR
#from lair.uataq import site_config
from lair.utils.grid import add_latlon_ticks
from lair.utils.geo import add_latlon_ticks
from lair.utils.plotter import log10formatter
from lair.utils.records import Cacher

Expand Down Expand Up @@ -227,9 +227,9 @@ def __init__(self, footprint_dir: str, subset: list | bool=False,

if cache:
if cache is True:
from lair.config import CACHE_DIR # TODO want project
cache = os.path.join(footprint_dir, 'footprints_cache.pkl')
self.read = Cacher(self.read, cache, reload=reload_cache,
verbose=True)
self.read = Cacher(self.read, cache, reload=reload_cache)
self.cache = cache

self.foots = self.read(footprint_dir, subset, engine)
Expand Down Expand Up @@ -366,9 +366,9 @@ def area(self) -> xr.DataArray:
xr.DataArray
Area of the footprints grid.
"""
from lair.utils.grid import area_DataArray
from lair.utils.geo import gridcell_area

return area_DataArray(self.foots)
return gridcell_area(self.foots)

def apply_weights(self) -> xr.Dataset:
"""
Expand Down

0 comments on commit 3dd6774

Please sign in to comment.