Fix a typing issue (passing ndarray instead of a list)

PiperOrigin-RevId: 913650173
Change-Id: I279a5fd0f791567d2ed77fe8cf8e796b74e4f193
This commit is contained in:
Augustin Zidek
2026-05-11 05:36:10 -07:00
committed by Copybara-Service
parent 8850da42a6
commit 881212473a

View File

@@ -154,7 +154,7 @@ class Bonds(table.Table):
cif['_struct_conn.pdbx_role'].append(bond_row['role'])
cif['_struct_conn.conn_type_id'].append(bond_type)
bond_types = np.unique(self.type)
bond_types = np.unique(self.type).tolist()
cif['_struct_conn_type.id'] = bond_types
unknown = ['?'] * len(bond_types)
cif['_struct_conn_type.criteria'] = unknown