Open umesh-timalsina opened 4 years ago
My initial thoughts
parse units?
Yes, I would think so
group them by expressions
Not strictly necessary but this would be preferred; most core types of the same class are going to have the same expression
extract parameters
Yes, I would think so? At least I can't think of any other way.
I will also admit here that I'm still not 100% sure what serialization means. The criteria in my head is: "can I write this object to disk, read it back in, and have the same/same enough object back?" or, equivalently "can I read in this file, write it back out, and have something that is either the same or basically the same?"
Related to #250 and #246, If we are to serialize a ForceField class or extract ForceField from various other properties. We need two things:
Where should these methods be? One example Let's say a
DihedralType
has periodic parameters as a list. Should the extraction of these parameters happen? The bigger picture is to reuse and don't rewrite/refactor later.