-
Notifications
You must be signed in to change notification settings - Fork 124
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
[ITensors] Index filtering docstring improvements #1171
Conversation
@mtfishman please let me know if these docstrings look accurate to you |
Looks good to me, thanks. One suggestion I would have is defining a function: function index_filter_kwargs_docstring()
return """
Optional keyword arguments:
* tags::String - a tag name or comma separated list of tag names that the returned indices must all have
* plev::Int - common prime level that the returned indices must all have
* inds - Index or collection of indices. Returned indices must come from this set of indices.
"""
end and interpolate that into the other docstrings with |
Great, yes I was thinking that very same thing but couldn't remember quite how to do it. I'll make that change. |
@mtfishman ok just made that change |
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #1171 +/- ##
==========================================
- Coverage 59.52% 54.39% -5.14%
==========================================
Files 87 87
Lines 8361 8321 -40
==========================================
- Hits 4977 4526 -451
- Misses 3384 3795 +411
|
Thanks! |
Add list of most common keyword arguments to functions for filtering indices (commoninds, uniqueinds, etc.). Currently it's not so obvious to users what keyword arguments could be passed, as shown by a recent forum post.