get_site_fingerprints
- emmet.core.featurization.robocrys.condense.fingerprint.get_site_fingerprints(structure, as_dict=True, preset='CrystalNNFingerprint_ops')
Gets the fingerprint for all sites in a structure.
- Return type:
list[dict[str,int]] |ndarray- Parameters:
structure (IStructure)
as_dict (bool)
preset (str)
- Args:
structure: A structure. as_dict: Whether to return the fingerprints as a dictionary of
{'op': val}. Defaults toTrue.- preset: The preset to use when calculating the fingerprint. See
emmet.core.featurization.featurizers.SiteStatsFingerprint`for more details.
- Returns:
The fingerprint for all sites in the structure. If
as_dict == True, the data will be returned as alistofdictcontaining the order parameters as:[{'op': val}]
for each site. If
as_dict == False, the data will be returned as anumoy.ndarraycontaining the fingerprint for each site as:[site_index][op_index]