cifkit.preprocessors.environment_util module

cifkit.preprocessors.environment_util.calculate_normalized_dist_diffs(normalized_distances)[source]

Calculate differences between consecutive normalized distances.

cifkit.preprocessors.environment_util.calculate_normalized_distances(connections)[source]

Calculate normalized distances for each connection.

cifkit.preprocessors.environment_util.flat_site_connections(site_connections: dict) list[tuple[tuple[str, str], float]][source]

Transform site connections into a sorted list of tuples, each containing a pair of alphabetically distance.