load_snap¶
-
eridanus_pbh.utils.sim_utils.
load_snap
(snapshot: str, drct: str = 'output/snaps/', init_cond: str = 'output/init_cond/system.pkl', logger=<utilipy.utils.logging._LogPrint.LogPrint object at 0x11fdbb810>, verbose=None)[source]¶ Load Snapshot.
Goes through the systems listed in the initial condition snapshot, checking if there are snapshot files to load in. If there are, remove the old particles and load in the new. Also, overwrite the evolution and gravity particle sets to ensure correct object proxying
- Parameters
- snapshot: str
the name of the snapshot snapshots should have a file structure
output/snaps/cluster/
snapshot
output/snaps/unbound/
snapshot
- drct: str
the location of the snapshots
- init_cond: str
location of initial conditions
- store_inputs: bool
whether to store function inputs in a BoundArguments instance default {store_inputs}
- .. todo::
need to do by inspect, since can pass args as kwargs
- Other Parameters
- logger: LogFile
- verbose: int, optional