Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #353 #355

Merged
merged 9 commits into from
Apr 6, 2023
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