writing itp after modification #478
csbrasnett
started this conversation in
General
Replies: 1 comment 3 replies
-
Hi, the outfile parameter should be a file opened for writing. So: with open('test_out.itp', 'w') as outfile:
vermouth.gmx.write_molecule_itp(mol_out, outfile=outfile) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm reading in an itp file to modify it slightly, but I'm having trouble writing it out after doing so.
version is vermouth==0.7.3
here's a minimal example of what I'm trying to do:
I would have expected this to write the itp out, but currently I receive:
as the error.
In short, how can I write an itp file out like this?
Beta Was this translation helpful? Give feedback.
All reactions