def calculate_pass_slot(
        self, start, end, minimum_slot_duration=datetime.timedelta(minutes=1)
    ):
        """
        Calculates the passes available for the given spacecraft in between the
        start and end dates.
        :param start: The datetime object (UTC) that defines the start of the
        simulation.
        :param end: The datetime object (UTC) that defines the end of the
        simulation.
        :param minimum_slot_duration: The minimum duration of a slot
        :return: List with the datetime objects (UTC) with the passess for
        the given Spacecraft over the given GroundStation
        :raises ephem.CircumpolarError: Raised whenever a pass for a given
        simulation is either always up or the satellite never shows up above the
        defined horizon.
        """
        if self._test_mode:
            if self._fail_test:
                raise Exception('TEST TEST TEST EXCEPTION')
            return OrbitalSimulator._create_test_operational_slots(start, end)

        pass_slots = []
        self._observer.date = OrbitalSimulator.datetime_2_ephem_string(start)
        last_end = start

        while last_end < end:

            tr, azr, tt, altt, ts, azs = self._observer.next_pass(self._body)
            self._body.compute(self._observer)

            if not tr or not ts:
                return pass_slots

            dt_tr = misc.localize_datetime_utc(tr.datetime())
            dt_ts = misc.localize_datetime_utc(ts.datetime())

            if end > dt_tr:
                break

            if dt_ts > end:
                slot_end = end
            else:
                slot_end = dt_ts

            if (slot_end - dt_tr) > minimum_slot_duration:
                pass_slots.append((dt_tr, slot_end))

            self._observer.date = ts + ephem.minute
            last_end = misc.localize_datetime_utc(
                self._observer.date.datetime()
            )

        return pass_slots
dataset/ETHPy150Open satnet-project/server/services/common/simulation.py/OrbitalSimulator.calculate_pass_slot/swapped operands of `>`