Skip to content

Task: Write Trails Time Feature functions: think_time #73

@cgmaiorano

Description

@cgmaiorano

Description

Calculate total and mean think times using consecutive segments approach. Think time at a circle = time from entering the circle (end of incoming segment) to leaving the circle (start of outgoing segment). This function will be based off the calculate_think_times function from https://github.com/theBasicScientist/trailsab-proc/blob/main/trails_analyzer.py.

Tasks

  • Sort segments to ensure proper order (by their actual sequence in the task)
  • Find consecutive segments: The destination of current segment should equal origin of next segment
  • Find when we ENTERED this circle (working backwards from end of current segment)
  • Find when we LEFT this circle (working forwards from start of next segment)
  • Calculate think time and assign to final list[think_times]
  • Calculate sum and mean of list[think_times]

Freeform Notes

No response

Metadata

Metadata

Assignees

Labels

taskA development task intended for Github Projects

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions