<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def orbit_gen(self):
 """ Generator for iterating over each orbit. """

        if self.norbits == 1:
            yield self

        else:
            for i in range(self.norbits):
                yield self[:, i]