Skip to content

Commit e52ed74

Browse files
authored
Add files via upload
1 parent adab15d commit e52ed74

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

multioptpy/Wrapper/mapper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ def fingerprint(
755755
number of such bonds.
756756
"""
757757
bonded_si, bonded_sj = self._bonded_pairs(symbols, coords)
758+
if len(bonded_si) == 0:
759+
return {}
758760
pairs = np.sort(np.column_stack((bonded_si, bonded_sj)), axis=1)
759761
unique_pairs, counts = np.unique(pairs, axis=0, return_counts=True)
760762
return {tuple(p): int(c) for p, c in zip(unique_pairs, counts)}

0 commit comments

Comments
 (0)