prospect.team

class prospect.team.Team(name: str, surveyor_list: List[prospect.surveyor.Surveyor], assignment: str = 'naive')[source]

Bases: object

A collection of Surveyor objects.

Parameters
  • name (str) – Unique name for the team

  • surveyor_list (List[Surveyor]) – List of surveyors that make up the team

  • assignment ({'naive', 'speed', 'random'}) –

    Strategy for assigning team members to survey units. * ‘naive’ - cycle through Team.df in index order, assigning surveyors

    to survey units in Coverage.df in index order until all survey units have a surveyor.

    • ’speed’ - calculate the total base time required for the coverage and allocate survey units proportional to surveyor speed.

    • ’random’ - for each survey unit, randomly select (with replacement) a surveyor from the team

name

Unique name for the team

Type

str

surveyor_list

List of surveyors that make up the team

Type

List[Surveyor]

assignment

Strategy for assigning team members to survey units.

Type

str

df

DataFrame with a row for each surveyor

Type

pandas DataFrame

add_surveyors(surveyors: List[prospect.surveyor.Surveyor])[source]

Update the Team with a new surveyor or surveyors

Parameters

surveyors (list of Surveyor objects) –

drop_surveyors(surveyors: List[str])[source]

Remove a surveyor or surveyors from the Team

Parameters

surveyors (list of str) – List of surveyor.name attributes for the surveyors you want to remove