Skip to content

I suspect the function "is_ISS_above" is returning true when it's not above #3

@r-jordan

Description

@r-jordan

Hi!

The function is_ISS_above has been returning True during more than 1 hour and it is impossible because the durations are less than 1000 seconds. Otherway it's returning False when it should return True.

Are you sure the following implementation of the is_ISS_above function is correct?

        test = self.pass_times(latitude, longitude, altitude, 2)
        # 2 results where asked so if API return only 1, that mean ISS is
        # above the location
        return len(test) is 1

I've searched the API documentation and it doesn't say anything about returning only 1 pass time would mean that the ISS is above. A correct implementation would be to look if the current time is between risetime and risetime+duration of the first element of the response.

Have good holidays!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions