Skip to content
Snippets Groups Projects
Commit dd4f537e authored by Joseph Weston's avatar Joseph Weston
Browse files

remove impossible case from system.VectorizedSystem.site_ranges

All site arrays must have 'norbs' set by definition.
parent fe3f149e
No related branches found
No related tags found
No related merge requests found
......@@ -431,8 +431,6 @@ class VectorizedSystem(System, metaclass=abc.ABCMeta):
def site_ranges(self):
site_offsets = np.cumsum([0] + [len(arr) for arr in self.site_arrays])
norbs = [arr.family.norbs for arr in self.site_arrays] + [0]
if any(norb is None for norb in norbs):
return None
orb_offsets = np.cumsum(
[0] + [len(arr) * arr.family.norbs for arr in self.site_arrays]
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment