Skip to content

Task: Write Trails Time Feature functions: error_time #69

@cgmaiorano

Description

@cgmaiorano

Description

This function calculates the total time spent making errors. It will take in the entire dataframe, check when there is an error based on the "error" column, and sum the total time spent making errors.

Tasks

  • Create binary mask for where error != E0
  • Find start and end indices where mask is true
  • Extract the time from the "seconds" column of the start and end indices
  • error_chunk_time = end_time - start_time
  • repeat for each error chunk found
  • sum all error_chunk_time

Freeform Notes

No response

Metadata

Metadata

Assignees

No one assigned

    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