Skip to content

Commit

Permalink
Also accept older joblib versions (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Nov 19, 2018
1 parent e8e441b commit 2d10174
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion salem/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ def _hash_cache_dir():


hash_cache_dir = _hash_cache_dir()
memory = Memory(location=hash_cache_dir + '_joblib', verbose=0)
try:
memory = Memory(location=hash_cache_dir + '_joblib', verbose=0)
except TypeError:
# https://github.com/fmaussion/salem/issues/130
memory = Memory(cachedir=hash_cache_dir + '_joblib', verbose=0)

# A series of variables and dimension names that Salem will understand
valid_names = dict()
Expand Down

0 comments on commit 2d10174

Please sign in to comment.