From 5f07ac8e67663188fe755e3af97a01db57f38ff6 Mon Sep 17 00:00:00 2001 From: chrisjonesBSU Date: Tue, 29 Aug 2023 12:37:10 -0600 Subject: [PATCH] remove check for self.gmso_system where its not needed --- hoomd_organics/base/system.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hoomd_organics/base/system.py b/hoomd_organics/base/system.py index e94d640c..44a0f96e 100644 --- a/hoomd_organics/base/system.py +++ b/hoomd_organics/base/system.py @@ -137,9 +137,7 @@ def n_molecules(self): @property def n_particles(self): - if self.gmso_system: - return self.gmso_system.n_sites - return sum([mol.n_particles for mol in self.all_molecules]) + return self.gmso_system.n_sites @property def mass(self): @@ -152,8 +150,7 @@ def mass(self): @property def net_charge(self): - if self.gmso_system: - return sum(site.charge for site in self.gmso_system.sites) + return sum(site.charge for site in self.gmso_system.sites) @property def box(self):