Skip to content

Commit

Permalink
RAPV3 - forgot to define caching attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
HeatherSavoy-USDA committed Oct 27, 2023
1 parent d760cb5 commit 1786f88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/library/datasets/rapv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ def __init__(self, store_path):
'biomass_pfg': {'fpattern' : biomass_fpattern, 'band_id' : 2}
}

# Attributes for caching loaded and subsetted data.
self.data_loaded = None
self.cur_data = None
self.current_clip = None
self.cur_data_clipped = None

def _loadData(self, varname, date_grain, request_date, subset_geom):
"""
Loads the data from disk, if needed. Will re-use already loaded (and
Expand Down

0 comments on commit 1786f88

Please sign in to comment.