nnn_summaries_match

emmet.core.featurization.robocrys.condense.site.nnn_summaries_match(nnn_sites_a, nnn_sites_b, likeness_tol=0.001, bond_angle_tol=0.1, match_bond_angles=True)

Determine whether two sets of next nearest neighbors match.

Next nearest neighbor data should be formatted the same as produced by robocrys.site.SiteAnalyzer.get_next_nearest_neighbors().

Args:

nnn_sites_a: The first set of next nearest neighbors. nnn_sites_b: The second set of next nearest neighbors. likeness_tol: The tolerance used to determine if two likeness parameters

are the same.

bond_angle_tol: The tolerance used to determine if two bond angles

are the same.

match_bond_angles: Whether to consider bond angles when matching.

Returns:

Whether the two sets of next nearest neighbors match.

Parameters:
  • nnn_sites_a (list[dict[str, Any]])

  • nnn_sites_b (list[dict[str, Any]])

  • likeness_tol (float)

  • bond_angle_tol (float)

  • match_bond_angles (bool)