Skip to content

ENH: Use map() for calculating each site map in trans matrix

Alexander Tygesen requested to merge trans_matrix_map into master

Using list(map()) is slightly more efficient than appending to the TM each iteration. This MR adds a helper function which calculates the site mappings for each atom in the template, and then maps over the entire template. Avoids unnecessary .append() calls.

Edited by Alexander Tygesen

Merge request reports

Loading