get_time_of_snapshot

eridanus_pbh.analyze.snapshot.get_time_of_snapshot(file: str, fformat: str = '.dat')[source]

Gets the time of the snapshot from the name.

format: snapshot_1234.5Myr.dat

Returns
snap_time: astropy Quantity