original_docstring: Save parameters to the given location
  
          directory: str - optional location to save; default is the source_directory.
          name: str - optional name of new parameters file; default is the source filename.
  
          Returns the path of the saved file.
          
docstring: Save parameters to the given location
  directory: str - optional location to save; default is the source_directory.
  name: str - optional name of new parameters file; default is the source filename.
  
  Returns the path of the saved file.
docstring_tokens: Save parameters to the given location directory : str - optional location to save ; default is the source_directory . name : str - optional name of new parameters file ; default is the source filename . Returns the path of the saved file .
code: def save(self, directory: str = None, name: str = None):
          """Save parameters to the given location
  
          directory: str - optional location to save; default is the source_directory.
          name: str - optional name of new parameters file; default is the source filename.
  
          Returns the path of the saved file.
          """
          if (not directory or not name) and not self.source:
              raise AttributeError('name and directory parameters are required')
  
          source_directory, source_name = self.source_location()
          location = directory if directory else source_directory
          filename = name if name else source_name
          path = Path(location, filename)
          with open(path, 'w', encoding='utf-8') as json_file:
              dump(dict(self.entries()), json_file, ensure_ascii=False, indent=2)
          return str(path)
code_tokens: def save ( self , directory : str = None , name : str = None ) : if ( not directory or not name ) and not self . source : raise AttributeError ( 'name and directory parameters are required' ) source_directory , source_name = self . source_location ( ) location = directory if directory else source_directory filename = name if name else source_name path = Path ( location , filename ) with open ( path , 'w' , encoding = 'utf-8' ) as json_file : dump ( dict ( self . entries ( ) ) , json_file , ensure_ascii = False , indent = 2 ) return str ( path )
short_docstring: Save parameters to the given location
  directory: str - optional location to save; default is the source_directory.
short_docstring_tokens: Save parameters to the given location directory : str - optional location to save ; default is the source_directory .
comment: """Save parameters to the given location
  
          directory: str - optional location to save; default is the source_directory.
          name: str - optional name of new parameters file; default is the source filename.
  
          Returns the path of the saved file.
          """