convolve_on_the_fly module

Functions for on-the-fly convolutions.

This is mostly experimental, but in short: - based on the total mass formed into stars in a given target convolution bin, and potentially the metallicity distribution, - the user can provide a call to a population-synthesis code that evolves a population on the fly.

The user is responsible for all the conversions and reweighting here.

what do we need: - on-the-fly function to convolve

syntheticstellarpopconvolve.convolve_on_the_fly.convolve_on_the_fly(config, sfr_dict, convolution_instruction, time_bin_info_dict, persistent_data=None, previous_convolution_results=None)[source]
syntheticstellarpopconvolve.convolve_on_the_fly.convolve_on_the_fly_post_convolution_hook_wrapper(config, sfr_dict, convolution_instruction, time_bin_info_dict, convolution_results, persistent_data=None, previous_convolution_results=None)[source]

Function to wrap the post-convolution function call for event-convolution by integration.

rules: - additional data can be added to the convolution_results - the number of systems has to be equal to before the post-convolution function.

syntheticstellarpopconvolve.convolve_on_the_fly.handle_call_on_the_fly_function(config, time_bin_info_dict, sfr_dict, convolution_instruction)[source]

Function to call an external evolution code to perform on-the-fly evolution