-
Notifications
You must be signed in to change notification settings - Fork 50
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
Unclear default value for normalize
kwarg in freud.density.RDF
#635
Comments
Actually, the default is False, and the docstring should be updated to include the usual indicator |
@vyasr Does this need to be API-breaking? I'd prefer to just handle a third option for
|
I think that's fine, as long as we remove documentation of the boolean arguments (and replace with the new keywords) and raise DeprecationWarning whenever booleans are provided. My primary concern is that in the new proposal |
Sounds like a good plan. We can list all values / replacements in the DeprecationWarning to make it clear. |
@tommy-waltmann to speed up 3.0 I would recommend just doing the renaming of existing normalizations without implementing new normalization solutions. |
Ok, then the argument will be named |
closed via #1013 |
Describe the bug
The help for
freud.density.RDF
says this about the normalize kwarg:| normalize (bool, optional):
| Scale the RDF values by
| :math:
\frac{N_{query\_points}}{N_{query\_points}-1}
. This| argument primarily exists to deal with standard RDF calculations
| where no special
query_points
orneighbors
are provided,| but where the number of
query_points
is small enough that the| long-ranged limit of :math:
g(r)
deviates significantly from| :math:
1
. It should not be used if :code:query_points
is| provided as a different set of points, or if unusual query
| arguments are provided to :meth:
~.compute
, specifically if| :code
exclude_ii
is set to :code:False
. This normalization is| not meaningful in such cases and will simply convolute the data.
I think the default value is
True
, but this could be more clear. Please forgive me if this is obvious or I have just missed it somewhere!To Reproduce
help(freud.density.RDF)
Error output
n/a
System configuration (please complete the following information):
Additional context
n/a
The text was updated successfully, but these errors were encountered: