-
Notifications
You must be signed in to change notification settings - Fork 36
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
Remove index from Project.find_jobs() #135
Conversation
@csadorf I made this PR since it was one of the last remaining items on the Milestone 1.0 list. I'm going to fix the tests, then feel free to update it directly as needed. |
.. note:: | ||
Providing a pre-calculated index may vastly increase the | ||
performance of this function. | ||
|
||
:param filter: A mapping of key-value pairs that all | ||
indexed job statepoints are compared against. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstrings may need to be updated here, I'm not sure if using the word "indexed" is still appropriate. Since the argument was already unused, these may have been out of date already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, in fact we should go through all doc strings to check for other incomplete deprecations and inconsistencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would generally approve this PR, but since we already decided that we want to remove all deprecations, can we remove the find_statepoints()
function directly?
@@ -630,7 +626,7 @@ def to_dataframe(self, *args, **kwargs): | |||
""" | |||
return self.find_jobs().to_dataframe(*args, **kwargs) | |||
|
|||
def find_statepoints(self, filter=None, doc_filter=None, index=None, skip_errors=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is deprecated. Can you remove it?
The |
Motivation and Context
Resolves #131.
Types of Changes
This pull request is based on
1The change breaks (or has the potential to break) existing functionality.
Checklist:
If necessary: