Function that makes sure that the global dict is prepared to have a value set there. This dictionary will store values and factors for the distribution functions, so that they dont have to be calculated each time.
Function that makes sure that the global dict is prepared to have a value set there.
This dictionary will store values and factors for the distribution functions,
so that they dont have to be calculated each time.
Args:
global_dict: globablly acessible dictionary where factors are stored in
info_string="This information was obtained by the following binary_c build: \n\t**binary_c git branch**: {}\t**binary_c git revision**: {}\t**Built on**: {}".format(
info_string="""
This information was obtained by the following binary_c build:
Function that calls the get_help_super() to get the help text/descriptions for all the parameters available in that build.
Function that calls the get_help_super() to get the help text/descriptions for all the
parameters available in that build.
Writes the results to a .rst file that can be included in the docs.
Tasks:
- TODO: add the specific version git branch, git build, git commit, and binary_c version to this document
- TODO: add the specific version git branch, git build, git commit, and binary_c version to
this document
Args:
output_file: name of the output .rst faile containing the ReStructuredText formatted output of all the binary_c parameters.
output_file: name of the output .rst faile containing the ReStructuredText formatted output
of all the binary_c parameters.
"""
# Get the whole arguments dictionary
@@ -1372,7 +1396,8 @@ def inspect_dict(
)->dict:
"""
Function to (recursively) inspect a (nested) dictionary.
The object that is returned is a dictionary containing the key of the input_dict, but as value it will return the type of what the value would be in the input_dict
The object that is returned is a dictionary containing the key of the input_dict, but as value
it will return the type of what the value would be in the input_dict
In this way we inspect the structure of these dictionaries, rather than the exact contents.
@@ -1382,7 +1407,8 @@ def inspect_dict(
indent: (optional, default = 0) indent of the first output
Returns:
Dictionary that has the same structure as the input_dict, but as values it has the type(input_dict[key]) (except if the value is a dict)
Dictionary that has the same structure as the input_dict, but as values it has the
type(input_dict[key]) (except if the value is a dict)
"""
structure_dict={}
@@ -1713,8 +1739,9 @@ class BinaryCEncoder(json.JSONEncoder):
pass
else:
returnstr_repr
# Let the base class default method raise the TypeError
"Mmin":float(return_binary_c_version_info(parsed=True)['macros']['BINARY_C_MINIMUM_STELLAR_MASS']),# We take the value that binary_c has set as the default