mbuild icon indicating copy to clipboard operation
mbuild copied to clipboard

String validation

Open ahy3nz opened this issue 5 years ago • 3 comments

Describe the behavior you would like added to mBuild After atomtyping with an FFXML, the resultant structure.atoms might have names that are very long strings. When writing to a fixed-column-width format, these names get truncated, which could raise issues when trying to perform a simulation

Describe the solution you'd like Some string validation checks. The best solution isn't apparent because we use parmed's gro/pdb writers, but could we do some iteration through a pmd.Structure or mb.Compound to check string lengths?

Describe alternatives you've considered While this isn't an absolutely essential feature, other workarounds could include making sure someone's FFXML will indeed fit their file format constraints, preventing the issue of too-long-strings. For example, making sure every type, class, element XML attribute is within the 4-char limit for PDB atoms

ahy3nz avatar Apr 24 '19 20:04 ahy3nz

Correct me if I'm confused, but this seems like more of a backend issue?

mattwthompson avatar Apr 24 '19 20:04 mattwthompson

I wasn't sure where to put this issue - the writers are in mbuild, but the validation would mainly be on parmed structures post-ff-application. Maybe there's not some code/module we can put to address this, but just observe this as a potential obstacle for users interested in using mosdef with their workflows

ahy3nz avatar Apr 24 '19 20:04 ahy3nz

This issue will in the future be a GMSO one as writing through ParmED will be deprecated. This gives us more control over these tests, which should be on the writer end of things.

CalCraven avatar Aug 10 '22 20:08 CalCraven