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

9 lines
203 B
Python
Raw Normal View History

2021-04-05 18:02:40 +02:00
from rebound import Particle
2021-05-03 16:16:55 +02:00
habitable_zone_inner = 0.75
habitable_zone_outer = 1.5
2021-04-05 18:02:40 +02:00
def is_potentially_habitable(planet: Particle):
return habitable_zone_inner <= planet.a <= habitable_zone_outer