Skip to content

Commit 4b64789

Browse files
committed
Added warning
1 parent f8370fd commit 4b64789

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stumpy/cache.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ def save(cache_dir=None):
250250
else: # pragma: no cover
251251
warnings.warn(CACHE_WARNING)
252252

253+
if numba.config.CACHE_DIR != '':
254+
msg = "Found user specified `NUMBA_CACHE_DIR`/`numba.config.CACHE_DIR`. "
255+
msg =+ "The `stumpy` cache files may not be saved/cleared correctly!"
256+
warnings.warn(msg)
257+
253258
_save(cache_dir)
254259

255260
return

0 commit comments

Comments
 (0)