cogwheel.utils.get_rundir¶
- cogwheel.utils.get_rundir(eventdir)¶
Return path to a directory where a new inference run can take place.
This follows a standardized naming scheme for output directories, the path will be of the form ‘{eventdir}/{RUNDIR_PREFIX}{run_id}’.
- Parameters:
- eventdirstr, os.PathLike
Path to a directory where to store parameter estimation data for a specific prior and event, e.g. output of
get_eventdir.
- Returns:
- pathlib.Path
Path to a new (nonexistent) run directory. The directory is not created.