Skip to content
Commit b0add30e authored by Valentin Schneider's avatar Valentin Schneider
Browse files

analysis/tasks: Add a stringify argument to df_task_states

The current df_task_states forces the user to use the

  df[df.curr_state == TaskState.TASK_*.char]

pattern since we store the state's character into the dataframe to be
readable. Analysis code shouldn't have to deal with this, and using
pure ints will make filtering a bit faster.

Change the existing df_task_states to use pure ints, and add a
parameter that lets us have the char representation of TaskState.
parent 2b8fc44d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment