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
Standardize the freud API #179
Comments
I would expect that similar to the different classes in |
|
The correlation functions expose their data in the property |
|
|
|
Also, the tests for |
|
becomes
|
List of parameter naming for cutoff distance and number of neighbors. Related to #180.
|
Proposal for final names:
Proposal for query_args: Misc notes:
|
Are you listing [ref_orientations] and [ref_values] twice on purpose? |
No, that's a typo. Thanks for the catch. I'll edit that comment directly so that we can safely use it as a reference. |
Histogram functions like RDF, Correlation Functions, PMFTs should all agree on how bins are specified -- RDF and CFs should use something like |
Are bins always assumed to be linear? |
Currently yes, we don't have a mechanism for defining bins of uneven spacing like |
I'm just bringing this up, because if you don't assume all bins to always be linear, you should probably generalize the API now. In that sense you should prefer a definition similar to
A argument name |
@csadorf That's a great idea. Thanks! |
|
|
|
|
List of issues discussed with @vyasrGeneral
Box
Cluster
Density
Order
Parallel
PMFT
|
The only outstanding questions on this issue are:
|
Done in #499. |
From roadmap planning session with @vyasr and @bdice. To be assigned after #176 is closed.
Standardize the freud API
Once #176 (doc cleaning) is done, we should identify what we want APIs to look like for everything in freud.
The behavior of compute/accumulate/property getters is one notable case that should be standardized.
For methods that we want to remove (e.g. getRDF, which should be replaced by a property), we will remove that method from the documentation and add deprecation warnings for version 2.0.
For any class/function where the signature has to change, we will make use of
*args, **kwargs
to take variable APIs and then dynamically resolve them. Deprecation warnings will be issued wherever appropriate.The text was updated successfully, but these errors were encountered: