Skip to content

Commit

Permalink
add function to save cache
Browse files Browse the repository at this point in the history
  • Loading branch information
NimaSarajpoor committed Jan 13, 2025
1 parent 2624445 commit 4b37b0a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions stumpy/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,25 @@ def _recompile():
func.recompile()

return


def _save():
"""
Save all njit functions
Parameters
----------
None
Returns
-------
None
"""
warnings.filterwarnings("once")
warnings.warn(CACHE_WARNING)
_enable()
_recompile()
warnings.filterwarnings("default")


return

0 comments on commit 4b37b0a

Please sign in to comment.