Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
qchempku2017 committed Aug 30, 2023
2 parents ff78a3a + 07a5229 commit 044391e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions WFacer/enumeration.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,10 @@ def truncate_cluster_subspace(cluster_subspace, sc_matrices):
f"with given supercells: {sc_matrices}!\n"
f"Removed orbits with indices: {to_remove}"
)
cluster_subspace_new = cluster_subspace.copy()
# Cannot call remove_orbit with an empty list.
if len(to_remove) > 0:
cluster_subspace_new.remove_orbits(to_remove)
return cluster_subspace_new
cluster_subspace.remove_orbits(to_remove)
return cluster_subspace


def enumerate_compositions_as_counts(
Expand Down

0 comments on commit 044391e

Please sign in to comment.