1
0
Fork 0
mirror of https://github.com/Findus23/rebound-collisions.git synced 2024-09-19 15:53:48 +02:00

fix typo in main_particle

This commit is contained in:
Lukas Winkler 2021-01-02 16:38:07 +01:00
parent 96cb4854c8
commit d396f5fcad
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -101,7 +101,7 @@ def merge_particles(sim: Simulation, ed: ExtraData):
# just called the more massive one the main particle to keep its type/name
# Sun<->Protoplanet -> Sun
main_particle = cp1.m if cp1.m > cp2.m else cp2
main_particle = cp1 if cp1.m > cp2.m else cp2
projectile_wmf = ed.pd(cp1).water_mass_fraction
target_wmf = ed.pd(cp2).water_mass_fraction