sysdynpy/system.py
def show_system_elements(self):
        """Creates a string with information about the system elements.

        This includes the properties :py:attr:`~.SystemElement.name` and 
        :py:attr:`~.SystemElement.var_name`. Depending on the system element
        :py:attr:`~.Stock.calc_rule` and :py:attr:`~.Stock.input_elements`
        are given as additional information. :py:attr:`~.Stock.input_elements`
        only shows the name of all direct input elements to prevent recursion.
        The string is printed to the console.
        """
        s = ""
        s += "==== " + self.name + " ====\n"
        for element in self._system_elements:
            s += "{ name: " + element.name
            if hasattr(element, "value"):
                s += ", value: " + str(element.value)
            s += ", var_name: " + str(element.var_name)
            if hasattr(element, "input_elements"):
                s += ", input_elements: ["
                for idx, input_element in enumerate(element.input_elements):
                    if idx < len(element.input_elements)-1:
                        s += "{ name: " + input_element.name + "}, "
                    else:
                        s += "{ name: " + input_element.name + "}"
                s += "]"
            s += "}\n"
        print(s)
Creates a string with information about the system elements.

        This includes the properties :py:attr:`~.SystemElement.name` and 
        :py:attr:`~.SystemElement.var_name`. Depending on the system element
        :py:attr:`~.Stock.calc_rule` and :py:attr:`~.Stock.input_elements`
        are given as additional information. :py:attr:`~.Stock.input_elements`
        only shows the name of all direct input elements to prevent recursion.
        The string is printed to the console.
        
Creates a string with information about the system elements.
This includes the properties :py:attr:`~.SystemElement.name` and
Creates a string with information about the system elements . This includes the properties : py : attr : ` ~ . SystemElement . name ` and
def show_system_elements(self):
        s = ""
        s += "==== " + self.name + " ====\n"
        for element in self._system_elements:
            s += "{ name: " + element.name
            if hasattr(element, "value"):
                s += ", value: " + str(element.value)
            s += ", var_name: " + str(element.var_name)
            if hasattr(element, "input_elements"):
                s += ", input_elements: ["
                for idx, input_element in enumerate(element.input_elements):
                    if idx < len(element.input_elements)-1:
                        s += "{ name: " + input_element.name + "}, "
                    else:
                        s += "{ name: " + input_element.name + "}"
                s += "]"
            s += "}\n"
        print(s)
def show_system_elements ( self ) : s = "" s += "==== " + self . name + " ====\n" for element in self . _system_elements : s += "{ name: " + element . name if hasattr ( element , "value" ) : s += ", value: " + str ( element . value ) s += ", var_name: " + str ( element . var_name ) if hasattr ( element , "input_elements" ) : s += ", input_elements: [" for idx , input_element in enumerate ( element . input_elements ) : if idx < len ( element . input_elements ) - 1 : s += "{ name: " + input_element . name + "}, " else : s += "{ name: " + input_element . name + "}" s += "]" s += "}\n" print ( s )
Creates a string with information about the system elements.
Creates a string with information about the system elements .
"""Creates a string with information about the system elements.

        This includes the properties :py:attr:`~.SystemElement.name` and 
        :py:attr:`~.SystemElement.var_name`. Depending on the system element
        :py:attr:`~.Stock.calc_rule` and :py:attr:`~.Stock.input_elements`
        are given as additional information. :py:attr:`~.Stock.input_elements`
        only shows the name of all direct input elements to prevent recursion.
        The string is printed to the console.
        """
self
py
`~.SystemElement.var_name`. Depending on the system element
` ~ . SystemElement . var_name ` . Depending on the system element
py
`~.Stock.calc_rule` and :py:attr:`~.Stock.input_elements`
are given as additional information. :py:attr:`~.Stock.input_elements`
only shows the name of all direct input elements to prevent recursion.
The string is printed to the console.
` ~ . Stock . calc_rule ` and : py : attr : ` ~ . Stock . input_elements ` are given as additional information . : py : attr : ` ~ . Stock . input_elements ` only shows the name of all direct input elements to prevent recursion . The string is printed to the console .