dtamayo / spock

🖖 A package to determine whether planetary orbital configurations will live long and prosper
GNU General Public License v3.0
64 stars 15 forks source link

Different results when running predict twice #3

Closed hannorein closed 4 years ago

hannorein commented 5 years ago

When I run model.predict(sim) multiple times, I don't get the same answer.

dtamayo commented 5 years ago

Thanks, that's just because it's rerunning to the sim from the final state, so not doing anything. Easy fix, but depends on whether we end up caching the short integration outputs. Will leave this here so we don't forget!

dtamayo commented 4 years ago

New version now makes a sim.copy() by default. Also added a flag to disable the behavior if you know what you're doing since it does hurt performance by ~20%