From 3b3aa97662cfa2a9ab73a9b694f7ea483b4d9548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= Date: Fri, 14 Oct 2022 15:09:57 +0200 Subject: [PATCH] python: Fix bonds visualization --- src/python/espressomd/visualization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/espressomd/visualization.py b/src/python/espressomd/visualization.py index c4da2a1b962..838448b21cf 100644 --- a/src/python/espressomd/visualization.py +++ b/src/python/espressomd/visualization.py @@ -908,7 +908,7 @@ def _update_bonds(self, particle_data): for bond in particle.bonds: # input data: # bond[0]: bond type, bond[1:] bond partners - bond_type = bond[0].type_number() + bond_type = bond[0]._type_number if len(bond) == 4: self.bonds.append([particle.id, bond[1], bond_type]) self.bonds.append([particle.id, bond[2], bond_type])