Skip to content

Commit

Permalink
Merge pull request #355 from qchempku2017/main
Browse files Browse the repository at this point in the history
Fixes #353
  • Loading branch information
lbluque authored Apr 6, 2023
2 parents b563bd7 + 34b862b commit c542509
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions smol/moca/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,9 @@ def active_sublattices(self):
@property
def restricted_sites(self):
"""Get indices of all restricted sites."""
sites = []
for sublattice in self.sublattices:
sites += sublattice.restricted_sites
return sites
return np.concatenate(
[sublattice.restricted_sites for sublattice in self.sublattices]
)

@property
def species(self):
Expand Down

0 comments on commit c542509

Please sign in to comment.