Closed ElliottKasoar closed 1 year ago
Will this only work with input.nn files generated using this version of the code?
Will this only work with input.nn files generated using this version of the code?
Currently, yes. If we want to make it more generally, there are a couple of options
It's also worth noting that the current implementation, and most straightforward alternatives, require some assumptions about the format of input.nn
. In addition to currently assuming identifiers for each set, the current implementation is also based on the distribution of #
s, while the alternative (1) would likely similarly assume the use of #
s to separate sets, as well as the format of variables in the set comments.
Resolves #5 by adding a new tag to each set of symmetry functions. This is used to check if a set is already present, then delete the section if the same set is being written.
This also has the benefit of making it clearer which sets would be overwritten and which sets would be appended if parameters are changed.