-
Notifications
You must be signed in to change notification settings - Fork 32
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
Abstract potential part of AtomType class into a new class #96
Conversation
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.
Can you add some documentation to AtomType
and Potential
? I got slipped up that independent_vars
is a set
of sympy.Symbol
and not set
of str
Would it be better for AtomType
to have a property/attribute nb_potential
, and this nb_potential
is a subclass of Potential
? Right now AtomType
is a subclass of Potential
, so expression, params, ind_vars
are all properties
What's your opinion on "independent variable" or "expression" checking? At some point we need to make sure all our |
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.
Small changes and suggestions for the first go around.
This is still a lingering question I'd like to hear other opinions about. So rather than For example, |
Co-Authored-By: mattwthompson <matt.thompson@vanderbilt.edu>
I like the inheritance as I currently have it in this PR - I think it makes sense for those attributes to be directly attributes of an More than anything, to me, it's too deep to try and access a sigma value by doing I also don't think that the approach |
From discussion, we'll leave the inheritance as is, From me, I think this PR is ready to merge |
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.
One or two final comments/possible requests, then I am ready to approve.
The idea behind this is that the part of the
AtomType
class that deals with the actual potential will be nearly identical to how other components (ConnectionType
, etc.) deal with it, so we should abstract it to a higher level and let those components inherit from it.