convolve_populations module
Main file to handle the convolution of populations
- syntheticstellarpopconvolve.convolve_populations.convolution_job_worker(job_queue, error_queue, worker_ID, config)[source]
Function that handles running the job
- syntheticstellarpopconvolve.convolve_populations.convolution_queue_filler(job_queue, num_cores, config, sfr_dict, convolution_instruction, data_dict, processes)[source]
Function to handle filling the queue for the multiprocessing
When the convolution instruction is a sampling-based convolution, we use forward convolution, which loops over starformation bins rather than convolution bins
- syntheticstellarpopconvolve.convolve_populations.convolve_populations(config)[source]
Main function to handle the convolution of populations
- syntheticstellarpopconvolve.convolve_populations.create_bin_iterator(config, convolution_instruction, sfr_dict)[source]
Function to create the bin iterator data
- syntheticstellarpopconvolve.convolve_populations.handle_convolution_choice(config, job_dict, sfr_dict, convolution_instruction, data_dict, persistent_data=None, previous_convolution_results=None)[source]
Function to handle the convolution choice
- syntheticstellarpopconvolve.convolve_populations.handle_convolution_steps(config, convolution_instruction, sfr_dict)[source]
Function to handle the pre-convolution, convolution, and post-convolution steps for a particular set of SFR dict and convolution_instruction
- syntheticstellarpopconvolve.convolve_populations.handle_multiprocessing_convolution(config, convolution_instruction, sfr_dict)[source]
Main function to handle convolution by multiprocessing
This allows several cores to handle convolutions at the same time, but in this case the user cannot store persistent information and use the results of the previous convolution.
- syntheticstellarpopconvolve.convolve_populations.handle_sequential_convolution(config, convolution_instruction, sfr_dict)[source]
Main function to handle sequential convolution.
This handles the convolution steps in sequence, but also allows the user to provide persistent information and use results of the previous convolution step
- syntheticstellarpopconvolve.convolve_populations.handle_sequential_or_multiprocessing_convolution(config, convolution_instruction, sfr_dict)[source]
- syntheticstellarpopconvolve.convolve_populations.handle_storing_convolution_results(config, grp, convolution_results, bin_center)[source]
Function to manage the storing of the convolution results
- syntheticstellarpopconvolve.convolve_populations.post_convolution(config, convolution_instruction, sfr_dict)[source]
Function to handle post-convolution.
Mostly stores tmp pickle files that contain the data
- syntheticstellarpopconvolve.convolve_populations.pre_convolution(config, convolution_instruction, sfr_dict)[source]
Function to handle things before a convolution. - Prepare output group structures in hdf5 as far as possible. - Stores SFR information in the output group. - Creates temporary directories.