Browse code

remove impossible case from system.VectorizedSystem.site_ranges

All site arrays must have 'norbs' set by definition.

Joseph Weston authored on 22/11/2019 11:03:31
Showing 1 changed files
... ...
@@ -431,8 +431,6 @@ class VectorizedSystem(System, metaclass=abc.ABCMeta):
431 431
     def site_ranges(self):
432 432
         site_offsets = np.cumsum([0] + [len(arr) for arr in self.site_arrays])
433 433
         norbs = [arr.family.norbs for arr in self.site_arrays] + [0]
434
-        if any(norb is None for norb in norbs):
435
-            return None
436 434
         orb_offsets = np.cumsum(
437 435
             [0] + [len(arr) * arr.family.norbs for arr in self.site_arrays]
438 436
         )