-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A problem with slicing in subsampling #95
Comments
Thank you @wehs7661! I think this may be due to a change in how multi-indexes are handled in This part of the library is in need of some updates to fix this issue, as well as to make the subsamplers easier to use for
Your understanding of the usage of these functions is correct! i generally choose the column of |
Hi @dotsdl, it would be great if the issue will be fixed! Also thank you for the detailed explanation! |
Regarding [1] S. Fan, B. I. Iorga, and O. Beckstein. Prediction of octanol-water partition coefficients for the SAMPL6- log P molecules using molecular dynamics simulations with OPLS-AA, AMBER and CHARMM force fields. Journal of Computer-Aided Molecular Design, e-print, 2020. https://doi.org/10.1007/s10822-019-00267-z [2] P. V. Klimovich, M. R. Shirts, and D. L. Mobley. Guidelines for the analysis of free energy calculations. J Comput Aided Mol Des, 29(5):397–411, May 2015. https://doi.org/10.1007/s10822-015-9840-9 |
Hi @wehs7661, apologies for the radio silence. Are you still running into this issue with latest |
Hi @dotsdl, no worries at all, and thanks for following up! So I just tried first upgrading my version of |
Cool, thank you for this feedback @wehs7661! This helps me to prioritize effort appropriately. I'll proceed with the refactor then. |
Hi
alchemlyb
developers,Thank you all for the development of this package. I was using
alchemlyb
to analyze some output files from the simulation performed by GROMACS. When using the functionequilibrium_detection
with the input parametersdf
andseries
being the wholeu_nk
matrix extracted from a*dhdl.xvg
file (by the functionextract_u_nk
) and the first column ofu_nk
(which isu_nk[(0.0, 0.0, 0.0, 0.0)]
), I got the following error:Tracing back the error, I found that this error indicated that there was no
time
index in the seriesu_nk[(0.0, 0.0, 0.0, 0.0)]
. However,series.index
in this case did returntime
as one of the names of the indices. I am not sure if this is an issue of data types. I tried turning the data type ofu_nk[(0.0, 0.0, 0.0, 0.0)]
from Series into DataFrame, but same error occurred. Here I reproduced the error in a jupyter notebook, in which I also added some comments and explanations of the problem(alchemlyb_issue.zip).To my understanding, the input parameter
df
of the subsampling methods should be the matrix/DataFrame extracted from thexvg
file, whileseries
could be any time series/column ofdf
. I'm not sure if this understanding is correct, but it might be worthy to add more detailed explanations of these two parameters in the documentation.Thanks a lot!
The text was updated successfully, but these errors were encountered: