mirror of
https://github.com/Findus23/rebound-collisions.git
synced 2024-09-19 15:53:48 +02:00
8 lines
203 B
Python
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
|