posydon_run_grid
- posydon_run_grid.create_binary_inlists(binary_controls, binary_job, star1_binary_controls, star1_binary_job, star2_binary_controls, star2_binary_job, work_dir, binary_inlist_project)[source]
Create the inlist and inlist grid points needed to run this part of grid
- posydon_run_grid.create_star_formation(mass, work_dir, star_inlist_project, initial_z=None, new_Z=False)[source]
Create the inlist and inlist grid points needed to run this part of grid
- posydon_run_grid.create_working_directory(grid_param_dict, args)[source]
Function to build the directory name and make inlists for a given grid point
- Params:
- grid_param_dict:
Dictionary with keys being the parameter names of the grid and values the actual values for those parameters for this grid point
- args:
The arguments passed to posydon-run-grid
- posydon_run_grid.do_child_process_logic(comm, grid, args, star1_formation=False, star2_formation=False)[source]
Execute the logic that the child process does for the dynamic grid
- posydon_run_grid.do_root_process_logic(comm, grid, args, grid_params_binary_controls, grid_params_binary_job, grid_params_star1_binary_controls, grid_params_star1_binary_job, grid_params_star2_binary_controls, grid_params_star2_binary_job)[source]
Execute the logic that the root process does for the dynamic grid
- posydon_run_grid.extract_mesa_results(final_dir)[source]
Based on the structure of the results folder extract the final state of the simulation
- posydon_run_grid.get_next_grid_point(psycris_inifile_path, grid, n_new_points, **kwargs)[source]
Sample a new grid point
- Parameters:
- Returns:
query_points (array) – Initial conditions of new MESA run to label.
pred_classess (array) – Predicted class of query point.
- posydon_run_grid.id_generator(size=10, chars=string.ascii_uppercase + string.digits + string.ascii_lowercase)[source]
Obtain omicron triggers run gravityspy on
- Parameters:
x (str) – the item you would like a random id to be generated for
Returns:
- posydon_run_grid.move_mesa_output(work_dir, final_dir, copyinstead=False)[source]
Moves the data from the working directory to the final directory. :param work_dir: Working directory (i.e. where the mesa exectuable should run) :param final_dir: When completed where would you like the output to go :param copyinstead: Indicates that the files should be copied instead of moved
- posydon_run_grid.run_grid_point(grid, star1_formation, star2_formation, grid_param_dict, binary_controls, binary_job, star1_binary_controls, star1_binary_job, star2_binary_controls, star2_binary_job, args)[source]
Execute the logic to run this MESA grid point
- posydon_run_grid.run_mesa(mesa_executable, work_dir, final_dir, **kwargs)[source]
Provides minor utility for actually spawning the mesa job for each grid
- mesa_executable:
Path to the executable you are running
- work_dir:
Working directory (i.e. where the mesa exectuable should run)
- final_dir:
When completed where would you like the output to go