1
0
Fork 0
mirror of https://github.com/Findus23/rebound-collisions.git synced 2024-09-19 15:53:48 +02:00
rebound-collisions/utils/astronomical.py
2021-05-03 16:16:55 +02:00

8 lines
203 B
Python

from rebound import Particle
habitable_zone_inner = 0.75
habitable_zone_outer = 1.5
def is_potentially_habitable(planet: Particle):
return habitable_zone_inner <= planet.a <= habitable_zone_outer