We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9570fda + dfb5e89 commit cebeeb0Copy full SHA for cebeeb0
1 file changed
src/graphomotor/features/time.py
@@ -0,0 +1,15 @@
1
+"""Feature extraction module for time-based metrics in spiral drawing data."""
2
+
3
+from graphomotor.core import models
4
5
6
+def get_task_duration(spiral: models.Spiral) -> dict:
7
+ """Calculate the total duration of a spiral drawing task.
8
9
+ Args:
10
+ spiral: Spiral object containing drawing data.
11
12
+ Returns:
13
+ Dictionary containing the total duration of the task in seconds.
14
+ """
15
+ return {"duration": spiral.data["seconds"].iloc[-1]}
0 commit comments