stilt.project.Project.add_receptors#

Project.add_receptors(receptors)[source]#

Add receptors to receptors.csv and return the new ones.

An existing file is only appended to. Receptors it already holds are skipped, and new rows use the file’s own columns (stilt.receptors.append_receptors_csv()).

Parameters:

receptors (list[stilt.receptor.Receptor]) – Receptors to add.

Returns:

The receptors that were not in the file before.

Return type:

list[stilt.receptor.Receptor]