Closed orbeckst closed 7 years ago
See also the Wiki page on analysis plugins.
Feel free to add to the wiki!
Just FYI: I don't think that the analysis plugins will see much further development and might become deprecated and eventually removed.
This issue will become moot with #82 (removal of plugins into a separate repo) and can then be handled there (depending on demand).
The plugins were removed in #82 so docs are now a problem in Becksteinlab/gromacswrapper.analysis#2
Question: I just started using your gromacswrapper and I'm stucked with the energy plugin in gromacs.analysis. Could you sent me an example how it should work?
Answer: very briefly: follow the plugin example in spirit but using the energy plugin:
If you set the current plugin then you don't have to provide the plugin name for run(), analyze(), and plot().
All data is stored with the plugin; you can get the actual object with
or as the Simulation.current_plugin
Then look into the dict
S.current_plugin.results
— all plugins store their data in this place. In the case of Energy plugin it only contains a single item with key"Energy"
that consists of an instance of the XVG class, which makes the contents of the xvg file available that is produced byg_energy
.In general, I suggest you play around in ipython and use the introspection feature (e.g. try TAB completion
S.<TAB>
to learn more.)