Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check_call_in_cache method to check cache without calling function (as per note in the code). Add some tests. #820

Merged
merged 14 commits into from
Aug 24, 2021

Conversation

cottrell
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Dec 11, 2018

Codecov Report

Merging #820 (478315f) into master (c952c22) will increase coverage by 0.04%.
The diff coverage is 89.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #820      +/-   ##
==========================================
+ Coverage   94.44%   94.48%   +0.04%     
==========================================
  Files          47       47              
  Lines        6964     6980      +16     
==========================================
+ Hits         6577     6595      +18     
+ Misses        387      385       -2     
Impacted Files Coverage Δ
joblib/memory.py 95.37% <77.77%> (-0.19%) ⬇️
joblib/test/test_memory.py 98.58% <100.00%> (+0.02%) ⬆️
joblib/_parallel_backends.py 94.92% <0.00%> (+1.17%) ⬆️

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 c952c22...478315f. Read the comment docs.

@cottrell
Copy link
Contributor Author

Code coverage is showing changes in parallel_backends and logger for some reason. No changes there.

joblib/memory.py Outdated Show resolved Hide resolved
Copy link
Contributor

@tomMoral tomMoral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM up to a typo.

Could you please add an entry in the change log?

joblib/memory.py Outdated Show resolved Hide resolved
@cottrell
Copy link
Contributor Author

Just pushed the wrong branch in case someone was about to do something here ... fixing in one sec.

@cottrell
Copy link
Contributor Author

Just pushed the wrong branch in case someone was about to do something here ... fixing in one sec.

Squashed again to one commit. And import removal had crept in and the test had not picked it up. I think the risks are now small as it is only one screen of new lines to view in the single commit.

@aabadie
Copy link
Contributor

aabadie commented Jan 25, 2019

It seems to me that this PR is addressing the same problem as #730. Did you have a look at it first ?

@cottrell
Copy link
Contributor Author

It seems to me that this PR is addressing the same problem as #730. Did you have a look at it first ?

nope. 20 line diff. can't even remember this. Whoever is managing this repo just chuck whatever is easiest. Nobody getting paid here for this so no hard feelings :) as long and the functionality gets in.

@tomMoral
Copy link
Contributor

tomMoral commented Oct 3, 2019

This PR seems to have stalled. I think this would be useful.
It seems that the only missing parts are an entry in the changelog and a mention in the doc. @cottrell are you available to help getting this merged?

@cottrell
Copy link
Contributor Author

cottrell commented Dec 4, 2019

@tomMoral just saw this ... I've added something to the doc and the changelog. I'm assuming the pipeline does the auto gen part of the doc stuff.

Rebased on master.

@cottrell
Copy link
Contributor Author

cottrell commented Dec 7, 2019

Not sure about those test failures, likely the master I rebased on. I don't think those failures happened before the rebase.

@danlkv
Copy link

danlkv commented Sep 28, 2020

What happened? Why this is not merged?

@tomMoral
Copy link
Contributor

I did not notice the update from @cottrell , sorry!
Indeed, we should merge this one. I will rebase on master and try to get this merge asap.

@tomMoral
Copy link
Contributor

tomMoral commented Oct 7, 2020

@aabadie @ogrisel I think this feature is helpful and the proposed solution is nice.
Not so sure about the naming.

Copy link
Contributor

@tomMoral tomMoral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nitpicks.

joblib/memory.py Outdated Show resolved Hide resolved
joblib/memory.py Outdated Show resolved Hide resolved
CHANGES.rst Outdated Show resolved Hide resolved
@tomMoral tomMoral merged commit 0426d6b into joblib:master Aug 24, 2021
jjerphan pushed a commit to jjerphan/joblib that referenced this pull request Oct 11, 2021
…ction (joblib#820)

Co-authored-by: cottrell <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Thomas Moreau <[email protected]>
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.

None yet

6 participants