This package is a python library with tools for the Molecular Simulation - Software Gromos. It allows you to easily set up, manage and analyze simulations in python.
Add a new class, ExpandedRepdat, inheriting from Repdat, that has the RE-EDS-relevant fields (potential energies of the end-states + which state is maximally contributing to the reference potential) as additional columns in the Repdat.DATA DataFrame rather than in a dictionary per each row.
The other possibility would be to rewrite the Repdatparser to include the fields in the dataframe directly. The current approach is favored because the default Repdat object is loaded in memory anyway during the analysis of RE-EDS simulations, and since loading a repdat can be time-consuming it is faster to just convert one format into another, even at the expense of more memory usage. At some point in the future, it would be nicer to rewrite the parser and adapt all the analysis functions which use a Repdat.
The new class therefore takes a Repdat object as input, and just modifies its DATA attribute to contain new columns for the potential energies of each state, as well as the minimum energy state.
Add a new class,
ExpandedRepdat
, inheriting fromRepdat
, that has the RE-EDS-relevant fields (potential energies of the end-states + which state is maximally contributing to the reference potential) as additional columns in theRepdat.DATA
DataFrame rather than in a dictionary per each row.The other possibility would be to rewrite the
Repdat
parser to include the fields in the dataframe directly. The current approach is favored because the defaultRepdat
object is loaded in memory anyway during the analysis of RE-EDS simulations, and since loading a repdat can be time-consuming it is faster to just convert one format into another, even at the expense of more memory usage. At some point in the future, it would be nicer to rewrite the parser and adapt all the analysis functions which use aRepdat
.The new class therefore takes a
Repdat
object as input, and just modifies itsDATA
attribute to contain new columns for the potential energies of each state, as well as the minimum energy state.