diff --git a/kwant/system.py b/kwant/system.py index c6764d162cf3167a56f77062086fd801a3699465..2eb13794775c92d11d3fb6c2e693d86caaee7a08 100644 --- a/kwant/system.py +++ b/kwant/system.py @@ -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] )