def _update_sasa_config(self, config, parameters, tmp_dir, nonstandard_residue_files, nonstandard_residue, ligand_topology):
    '\n        Add non-standard residues (including the ligand if a topology is\n        provided for it) to the freesasa config file.\n\n        Parameters\n        ----------\n\n        Notes\n        -----\n        Edited config files is saved in self.tmp_dir and\n        self.freesasa_config_file is updated to reflect this.\n\n        Returns\n        -------\n\n        '
    files_to_add = nonstandard_residue_files
    if ligand_topology:
        files_to_add.append(ligand_topology)
    residues_to_add = {}
    for filename in files_to_add:
        (residues, gentop) = extract_residue(filename)
        residues_to_add.update(residues)
    if nonstandard_residue:
        residues_to_add.update(nonstandard_residue)
    if residues_to_add:
        sasa_config = os.path.join(tmp_dir, 'system_sasa.config')
        self._add_residues_freesasa_config_file(residues_to_add, sasa_config, parameters, orig_filename=config)
        return sasa_config
    return config
Add non-standard residues (including the ligand if a topology is
provided for it) to the freesasa config file.

Parameters
----------

Notes
-----
Edited config files is saved in self.tmp_dir and
self.freesasa_config_file is updated to reflect this.

Returns
-------
def _update_sasa_config(self, config, parameters, tmp_dir, nonstandard_residue_files, nonstandard_residue, ligand_topology):
    '\n        Add non-standard residues (including the ligand if a topology is\n        provided for it) to the freesasa config file.\n\n        Parameters\n        ----------\n\n        Notes\n        -----\n        Edited config files is saved in self.tmp_dir and\n        self.freesasa_config_file is updated to reflect this.\n\n        Returns\n        -------\n\n        '
    files_to_add = nonstandard_residue_files
    if ligand_topology:
        files_to_add.append(ligand_topology)
    residues_to_add = {}
    for filename in files_to_add:
        (residues, gentop) = extract_residue(filename)
        residues_to_add.update(residues)
    if nonstandard_residue:
        residues_to_add.update(nonstandard_residue)
    if residues_to_add:
        sasa_config = os.path.join(tmp_dir, 'system_sasa.config')
        self._add_residues_freesasa_config_file(residues_to_add, sasa_config, parameters, orig_filename=config)
        return sasa_config
    return config