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
sampling
docstring clarification
#148
Comments
Thanks for the careful reading of the docstrings, @matbryan52!
This is how it is written in most of the docstrings of the most current version, e.g. If you are indeed looking at the latest version of the code on GitHub, it seems we have some outdated text to fix. Btw, not sure if you noticed, but we have an appendix explaining the sampling, is there some more clarification you'd like to see there? |
No problem @TomaSusi. I do think this is still present on Lines 771 to 772 in ef9688f
Thankfully the wording is quite consistent so it should be an easy change. |
Thank you @matbryan52, for finding this issue in our documentation. I am currently looking through the docs to see if there are other examples. I will fix them for the next version. |
@matbryan Thanks again for seeing this issue. I am pretty sure I tracked all the instances down and fixed them. I will close the issue, if you find anything similar please open a new issue, this was very helpful. Thanks again. |
Thanks @jacobjma, looks good. |
Throughout the code the
sampling
argument is referred to as:(or similar) but if we look at how the value is interpreted inside
Grid
:where
extent
andgpts
are documented asIt seems to me that for
extent
to have units of[Å]
thensampling
must effectively have units of[Å / gpt]
rather than[1 / Å]
as noted in the docstring. If it were a reciprocal-space grid then I could understand the docstring as-is, but this same note appears on many real space grids (e.g.GridScan
) where reciprocal Angstroms doesn't fit very well (for me).Perhaps I've misunderstood (or missed an explanation of the choice in the documentation!).
That said in your
Overview
doc page we have the line "a Potential with a given real-space sampling (in units of Å)", but in the docstring ofPotential
we find:The text was updated successfully, but these errors were encountered: