@@ -11,8 +11,6 @@ There are several other functions in this module, mostly to generate help texts
With this its also possible to automatically generate a document containing all the setting names + descriptions.
All the options starting with _ should not be changed by the user except when you really know what you're doing (which is probably hacking the code :P)
# TODO: add moe distefano
"""
importos
@@ -24,28 +22,24 @@ _MS_VERBOSITY_LEVEL = 5
_MS_VERBOSITY_INTERPOLATOR_LEVEL=6
_MS_VERBOSITY_INTERPOLATOR_EXTRA_LEVEL=7
# Options dict
grid_options_defaults_dict={
##########################
# general (or unordered..)
##########################
"amt_cores":1,# total amount of cores used to evolve the population
"binary":0,# FLag on whether the systems are binary systems or single systems.
"parse_function":None,# FUnction to parse the output with.
"multiplicity_fraction_function":0,# Which multiplicity fraction function to use. 0: None, 1: Arenou 2010, 2: Rhagavan 2010, 3: M&S 2017
"tmp_dir":temp_dir(),# Setting the temp dir of the program
"_main_pid":-1,# Placeholder for the main process id of the run.
"combine_ensemble_with_thread_joining":True,# Flag on whether to combine everything and return it to the user or if false: write it to data_dir/ensemble_output_{popuation_id}_{thread_id}.json
# "output_dir":
"_commandline_input":"",
"log_runtime_systems":0,# whether to log the runtime of the systems (1 file per thread. stored in the tmp_dir)
"_actually_evolve_system":True,# Whether to actually evolve the systems of just act as if. for testing. used in _process_run_population_grid
"max_queue_size":1000,# Maximum size of the system call queue. Can't be too big!
"_set_ms_grid":False,# Whether the M&S grid has been loaded
"max_queue_size":1000,# Maximum size of the system call queue.
"run_zero_probability_system":True,# Whether to run the zero probability systems
"_zero_prob_stars_skipped":0,
"ensemble_factor_in_probability_weighted_mass":False,# Whether to multiply the ensemble results by 1/probability_weighted_mass
"multiplicity_fraction_function":0,# Which multiplicity fraction function to use. 0: None, 1: Arenou 2010, 2: Rhagavan 2010, 3: M&S 2017
##########################
# Execution log:
##########################
@@ -67,6 +61,12 @@ grid_options_defaults_dict = {
),# TODO: make this more robust
"_binary_c_dir":os.environ["BINARY_C"],
##########################
# M&S internal settings
##########################
"_loaded_ms_data":False,# Holds flag whether the M&S data is loaded into memory
"_set_ms_grid":False,# Whether the M&S grid has been loaded
"m&s_options":None,# Holds the M&S options.
##########################
# Custom logging
##########################
"C_auto_logging":None,# Should contain a dictionary where the kes are they headers
@@ -489,6 +489,8 @@ grid_options_descriptions = {
"_zero_prob_stars_skipped":"Internal counter to track how many systems are skipped because they have 0 probability",
"ensemble_factor_in_probability_weighted_mass":"Flag to multiply all the ensemble results with 1/probability_weighted_mass",
"multiplicity_fraction_function":"Which multiplicity fraction function to use. 0: None, 1: Arenou 2010, 2: Rhagavan 2010, 3: M&S 2017",
"m&s_options":"Internal variable that holds the M&S options. Don't write to this your self",
"_loaded_ms_data":"Internal variable storing whether the M&S data has been loaded into memory",