-
Notifications
You must be signed in to change notification settings - Fork 708
Benchmark for the RMS module fail #3520
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
Comments
Hey @jbarnoud! Weighted RMSD calculations require weight values for all atoms defined in the list, the way it is implemented. But in the benchmarking test, the parameter of the weights list hasn't been defined correctly corresponding to the number of atoms (contains only 2 values).
|
For mdanalysis/benchmarks/benchmarks/analysis/rms.py Lines 17 to 24 in 55fa72f
weights to be either True or None . We then let setup()
self.weights to None or, for weights==True , to the weights computed from the masses according to the relative weight formula in the rmsd() docs
self.weights = self.A.masses() / np.sum(self.A.masses()) Then the actual call to mdanalysis/benchmarks/benchmarks/analysis/rms.py Lines 46 to 50 in 55fa72f
time_rmsd() can be simply
rms.rmsd(a=self.A,
b=self.B,
weights=self.weights,
center=center,
superposition=superposition) |
Expected behavior
Benchmarks run without errors.
Actual behavior
The benchmarks for
analysis.rms
fail with the following exceptions:The text was updated successfully, but these errors were encountered: