Skip to content

Commit

Permalink
remove check for self.gmso_system where its not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Aug 29, 2023
1 parent 1cd61eb commit 5f07ac8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions hoomd_organics/base/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit 5f07ac8

Please sign in to comment.