Skip to content

Commit

Permalink
List contents of Numba cache directory
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryPetrochenkov-NOAA committed Feb 26, 2025
1 parent 7908b00 commit f91a84c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/probabilistic_inundation.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,8 @@ def inundate_probabilistic(
posterior_dist=posterior_dist, huc=huc
)

# cache_dir = os.path.join(outputs_dir, "cache")
# os.makedirs(cache_dir, exist_ok=True)
# os.environ["NUMBA_CACHE_DIR"] = cache_dir
print('NUMBA_CACHE_DIR', os.environ["NUMBA_CACHE_DIR"])
print('Initial Contents of NUMBA_CACHE_DIR', os.listdir(os.environ['NUMBA_CACHE_DIR']))

# Apply inundation map to each percentile
for percentile, val in percentiles.items():
Expand Down Expand Up @@ -533,6 +532,7 @@ def inundate_probabilistic(
)
# print("Before final manipulation", time.localtime())
print("file exists: ", os.path.exists(final_inundation_path))
print('Contents of NUMBA_CACHE_DIR', os.listdir(os.environ['NUMBA_CACHE_DIR']))

path = base_output_path
files = ['90', '75', '50', '25', '10']
Expand Down

0 comments on commit f91a84c

Please sign in to comment.