"Process {}: generator done. Ran {} systems with a total probability of {}. This thread had {} failing systems with a total probability of {}".format(ID,number_of_systems_run,probability_of_systems_run,self.grid_options["_failed_count"],self.grid_options["_failed_prob"]),
self.grid_options["verbosity"],
0,
)
returnoutput_dict
returnoutput_dict
def_evolve_population_mp(self):
def_evolve_population_mp(self):
...
@@ -1132,7 +1148,8 @@ class Population:
...
@@ -1132,7 +1148,8 @@ class Population:
# TODO: add centering center left right for the spacing.
# TODO: add centering center left right for the spacing.
# TODO: add sensible description to this function.
# TODO: add sensible description to this function.
# TODO: Check whether all the probability and phasevol values are correct.
# TODO: Check whether all the probability and phasevol values are correct.
# TODO: import only the necessary packages/functions
Results in a generated file that contains a system_generator function.
Results in a generated file that contains a system_generator function.
"_total_starcount":0,# Total count of systems in this generator
"_total_starcount":0,# Total count of systems in this generator
"_probtot":0,# total probability
"_probtot":0,# total probability
"_weight":1.0,# weighting for the probability
"weight":1.0,# weighting for the probability
"_repeat":1.0,# number of times to repeat each system (probability is adjusted to be 1/repeat)
"repeat":1,# number of times to repeat each system (probability is adjusted to be 1/repeat)
"results":{},# dict to store the results. Every process fills this on its own and then it will be joined later
"results":{},# dict to store the results. Every process fills this on its own and then it will be joined later
"_start_time_evolution":0,# Start time of the grid
"_start_time_evolution":0,# Start time of the grid
"_end_time_evolution":0,# end time of the grid
"_end_time_evolution":0,# end time of the grid
...
@@ -466,8 +466,8 @@ grid_options_descriptions = {
...
@@ -466,8 +466,8 @@ grid_options_descriptions = {
"slurm":"Int flag whether to use a slurm type population evolution.",# TODO: describe this in more detail
"slurm":"Int flag whether to use a slurm type population evolution.",# TODO: describe this in more detail
"population_type":"variable storing what kind of population type should be evolved. See population_type_options for the options.",# TODO: make this functionality work properly
"population_type":"variable storing what kind of population type should be evolved. See population_type_options for the options.",# TODO: make this functionality work properly
"_population_type_options":"List storing the population_type options.",
"_population_type_options":"List storing the population_type options.",
"_weight":"Weight factor for each system. The calculated probability is mulitplied by this. If the user wants each system to be repeated several times, then this variable should not be changed, rather change the _repeat variable instead, as that handles the reduction in probability per system. This is useful for systems that have a process with some random element in it.",# TODO: add more info here, regarding the evolution splitting.
"weight":"Weight factor for each system. The calculated probability is mulitplied by this. If the user wants each system to be repeated several times, then this variable should not be changed, rather change the _repeat variable instead, as that handles the reduction in probability per system. This is useful for systems that have a process with some random element in it.",# TODO: add more info here, regarding the evolution splitting.
"_repeat":"Factor of how many times a system should be repeated. Consider the evolution splitting binary_c argument for supernovae kick repeating.",# TODO: make sure this is used.
"repeat":"Factor of how many times a system should be repeated. Consider the evolution splitting binary_c argument for supernovae kick repeating.",# TODO: make sure this is used.
"evolution_type":"Variable containing the type of evolution used of the grid. Multiprocessing or linear processing",
"evolution_type":"Variable containing the type of evolution used of the grid. Multiprocessing or linear processing",