Design/code discussion | Matt Thompson | Github link macro |
---|
link | https://gist.github.com/mattwthompson/1f58419d3f49e4ee9cfdd7fe14e1cc5e |
---|
|
MT – Seems like a good idea to have everything be accessed as a TopologyComponent - This will prepare us for possibly using atom-typed molecules or other things in the future. LW – Was thinking about “swappable components” as plugin. LW – Confused about the distinction between TopologyComponent and TopologyProvider MT – For vaccuum stuff, it doesn’t really make a difference. But we need to keep the door open for more complex systems. So for example we could have a protein TopologyComponent. MT – One big advantage of handling things this way is that we can load stuff into TopologyComponents, then do filtering as we like, and only at the end do we go through the work of assigning parameters. That is, we won’t need to wrestle with OFFMol requirements too early, especially if a filter would reject them BECAUSE they couldn’t become an OFFMol.
LW – Use of the word “identifier”? MT – SB used to use “type”, which seemed confusing. Also touches on questions of versioning. JW – This touches on an interesting problem with serialization where, if I can serailize a container that has multiple types of things in it, it’s hard to figure out how to deserialize them if we don’t have a record of what went in. LW – I wonder what happens if we overload the type map (in the current state of the example uses the identifier “openff” twice)
LW – Purpose of allowed_components ? LW – to_json should return more than just self.molecule.to_json , right, since it needs to describe what kind of container it is itself
JW – TopologyComponent <--> Molecule/SimpleMolecule? Should SimpleMolecule be an OpenFF-native OpenMM Chain? If that’s all we need, maybe we don’t need an openff-native class here. JW – Do we need PDBFile TopologyProvider? The only thing I ever do with a PDBFile object is GetTopology. Though I guess it may help to have the entire PDBFile object stored, since then there are a few more guarantees about roundtrippability.
|
Unresolved issues from last week | Lily Wang | Internal benchmarking project plan |