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

add wide_orbit to extradata

This commit is contained in:
Lukas Winkler 2021-09-03 13:37:30 +02:00
parent e2e67b6c4c
commit e58e73603b
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -15,6 +15,7 @@ class ParticleData:
type: str
escaped: float = None
collided_with_sun: float = None
wide_orbit: float = None
total_mass: float = None
@property
@ -182,6 +183,8 @@ class ExtraData:
with base_filename.with_suffix(".history.json").open() as f:
history = json.load(f)
self = cls()
if "perfect_merging" in data["meta"]:
del data["meta"]["perfect_merging"]
self.meta = Meta(**data["meta"])
self.history = History()
self.history.load(history)