Skip to content

FIX: re-establish argument_hash attribute for backward compat#716

Merged
ogrisel merged 3 commits intojoblib:masterfrom
aabadie:argument_hash
Jul 23, 2018
Merged

FIX: re-establish argument_hash attribute for backward compat#716
ogrisel merged 3 commits intojoblib:masterfrom
aabadie:argument_hash

Conversation

@aabadie
Copy link
Copy Markdown
Contributor

@aabadie aabadie commented Jul 9, 2018

This PR is an attempt to fix #714:

  • it reestablish the argument_hash attribute for backward compatibility, since it appears that some people were using it
  • the argument_hash is now marked deprecated
  • the string representation of MemorizedResult don't use argument_hash anymore but args_id instead.

The argument_hash attribute is marked deprecated
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 9, 2018

Codecov Report

Merging #716 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #716      +/-   ##
=========================================
+ Coverage   95.07%   95.1%   +0.02%     
=========================================
  Files          40      40              
  Lines        5751    5762      +11     
=========================================
+ Hits         5468    5480      +12     
+ Misses        283     282       -1
Impacted Files Coverage Δ
joblib/test/test_memory.py 97.49% <100%> (+0.03%) ⬆️
joblib/memory.py 95.37% <100%> (+0.04%) ⬆️
joblib/_parallel_backends.py 94.8% <0%> (-2%) ⬇️
joblib/_store_backends.py 91% <0%> (+0.52%) ⬆️
joblib/backports.py 95.83% <0%> (+2.08%) ⬆️
joblib/disk.py 88.33% <0%> (+6.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6a2f906...35c0443. Read the comment docs.

@aabadie aabadie changed the title FIX: restablish argument_hash attribute for backward compat FIX: re-establish argument_hash attribute for backward compat Jul 9, 2018
@ogrisel ogrisel merged commit b80c96c into joblib:master Jul 23, 2018
@ogrisel
Copy link
Copy Markdown
Contributor

ogrisel commented Jul 23, 2018

Thanks for the fix.

yarikoptic added a commit to yarikoptic/joblib that referenced this pull request Aug 22, 2018
* tag '0.12.2':
  Release 0.12.2
  Pin numpy version for sklearn test (joblib#734)
  Loky 2.2.0 (joblib#733)
  [MRG] BatchedCalls backward compat (joblib#732)
  Better detection for the cloudpickle wrapper (joblib#726)
  DOC: attempt to fix the build on RTD (joblib#725)
  Include dask backend to fix nested parallelism and auto-scatter (joblib#722)
  FIX: re-establish argument_hash attribute for backward compat (joblib#716)
  Fix cachedir deprecation message (joblib#720)
yarikoptic added a commit to yarikoptic/joblib that referenced this pull request Aug 22, 2018
* releases:
  Release 0.12.2
  Pin numpy version for sklearn test (joblib#734)
  Loky 2.2.0 (joblib#733)
  [MRG] BatchedCalls backward compat (joblib#732)
  Better detection for the cloudpickle wrapper (joblib#726)
  DOC: attempt to fix the build on RTD (joblib#725)
  Include dask backend to fix nested parallelism and auto-scatter (joblib#722)
  FIX: re-establish argument_hash attribute for backward compat (joblib#716)
  Fix cachedir deprecation message (joblib#720)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.12: 'MemorizedResult' object has no attribute 'argument_hash'

2 participants