-
Notifications
You must be signed in to change notification settings - Fork 1
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
added previous ff schema from older version #114
base: develop
Are you sure you want to change the base?
Conversation
18f3091
to
bbf213c
Compare
Pull Request Test Coverage Report for Build 11178486979Details
💛 - Coveralls |
@Bernadette-Mohr You could already take a look at this. I have finished implementing bond potentials, and also added a more general test suite that may be useful to you in other contexts. I will continue expanding to the other potential types, but let me know if you have any major feedback about the direction this is going. |
@JosePizarro3 @ndaelman-hu @EBB2675 @Bernadette-Mohr FYI - I implemented a function here in I'm sure it could be improved, and maybe you already have such tools in your testing, but perhaps we can collect these into one file in Also, I am definitely open to feedback concerning the structure of the tests. |
Regarding >> {'a': {'b': 2}, 'c': 3} == {'a': {'b': 2}, 'c': 3}
True So, if all elements have to match in value (but not necessarily order), you can use the out-of-the-box definition. If instead only a certain numerical threshold is needed, or only certain properties should be compared, I'd recursively apply a transformation / filtering to the P.s.: that isn't to say that your implementation is bad, just that it may already be covered. In Haskell, your approach would be called defining the initial algebra to an F-algebra. Given the nice maths of F-algebras, it's quite popular. For initial algebras constructed from algebraic data types, |
@ndaelman-hu thanks for your feedback! I did originally try to use the native python comparisons, the original function I implemented a while ago, but I believe I could not simply compare 2 dictionaries with arbitrarily nested structures and containing various and a priori unknown types...(I will have to take a look again) Maybe I over complicated things now, but a couple examples that I needed to treat in a special way:
I guess these things fall under: "If instead only a certain numerical threshold is needed, or only certain properties should be compared, I'd recursively apply a transformation / filtering to the dicts before comparison." -- what exactly do you mean by this? |
…lated missing forces or potentials automatically
Indeed, in that case I'd use a recursive function, much as you are doing now, but with the type signature There shouldn't be any issue overwriting the values in-place, given that the object where Lastly, Python has a max. stack frames (1000). If you encounter a stack overload, feel free to reach out, and we look into it. |
No description provided.