def _dist_iter(self):
    '\n        Iterate over a distributed variable.\n\n        Yields\n        ------\n        int or None\n            Variable index or None if index is not local to this rank.\n        '
    start = self._start
    end = self._end
    for i in range(self._dist_size):
        if ((i >= start) and (i < end)):
            (yield ((i - start) + self._offset))
        else:
            (yield None)
Iterate over a distributed variable.

Yields
------
int or None
    Variable index or None if index is not local to this rank.
def _dist_iter(self):
    '\n        Iterate over a distributed variable.\n\n        Yields\n        ------\n        int or None\n            Variable index or None if index is not local to this rank.\n        '
    start = self._start
    end = self._end
    for i in range(self._dist_size):
        if ((i >= start) and (i < end)):
            (yield ((i - start) + self._offset))
        else:
            (yield None)