#NEWLINE# def generate_docstring( self ) : #NEWLINE# #INDENT# '\n        Generates a numpy-style docstring for a user-created System class.\n\n        Returns\n        -------\n        docstring : str\n                string that contains a basic numpy docstring.\n\n        ' #NEWLINE# docstrings = [ '    """' ] #NEWLINE# firstTime = 1 #NEWLINE# for ( key , value ) in sorted ( vars ( self ) . items ( ) ) : #NEWLINE# #INDENT# if ( type ( value ) == OptionsDictionary ) : #NEWLINE# #INDENT# if firstTime : #NEWLINE# #INDENT# docstrings . extend ( [ '' , '    Options' , '    -------' ] ) #NEWLINE# firstTime = 0 #NEWLINE# #UNINDENT# docstrings . append ( value . _generate_docstring ( value ) ) #NEWLINE# #UNINDENT# #UNINDENT# docstrings . extend ( [ '    """' , '' ] ) #NEWLINE# return '\n' . join ( docstrings )