Closed Romumrn closed 1 year ago
I added a docstring with an example as you can see in the new commit. The way of value is added to the dictionary has been modified, now you can put float/int and it will be converted.
I am a little bit lost in the process of testing, I suppose that I should add a function in test_ffinput.py file? How can I run the test after that?
@Romumrn tests look good; let's wait for approval of @pckroon then we can merge this
I have corrected all the typos, I guess! Is it good enough?
This PR contains my proposition for parsing block meta. I suggest keeping the format separated by tab or space, the first element will be the key and the rest will be the value(s). Then it allowed the user to add extra information to .itp file, and retrieve it through a dictionary.
Example :
Output : ( ff.blocks['GLY'].meta ) {'group': ['protein', 'polymer', 'organic'], 'realname': 'Glycine'}