{
 "name": "tutorial-q03-pace-three-ways",
 "title": "Tutorial Q-3: Pace from distance and time, checked three ways",
 "description": "Write a pace function, check it against three known cases with assert, then apply it to the instructor's 19 runs with moving and elapsed time and work out what the file's own pace column means.",
 "homepage": "https://apopt.com/data/tutorials/q03-pace-three-ways/",
 "licenses": [
  {
   "name": "CC BY 4.0",
   "path": "https://creativecommons.org/licenses/by/4.0/"
  }
 ],
 "created": "2026-12-03",
 "keywords": [
  "tutorial",
  "quick tutorial",
  "running",
  "pace",
  "units",
  "assert",
  "case file"
 ],
 "resources": [
  {
   "name": "expected-printed-output.txt",
   "path": "expected/printed-output.txt",
   "url": "https://apopt.com/data/tutorials/q03-pace-three-ways/expected/printed-output.txt",
   "format": "text",
   "mediatype": "text/plain",
   "bytes": 975,
   "hash": "sha256:a062e8e1cfd9fbf438cce380c54a478f58d31f73c64a1230221f4b3875e0691e",
   "description": "Everything the tutorial prints, cell by cell"
  },
  {
   "name": "raw-activities.csv",
   "path": "raw/activities.csv",
   "url": "https://apopt.com/data/tutorials/q03-pace-three-ways/raw/activities.csv",
   "format": "csv",
   "mediatype": "text/csv",
   "bytes": 3470,
   "hash": "sha256:940792c1acdb5c435b189da0781bf5ce3085be675223e31e8af6a1cb791372e8",
   "description": "one row per run, 19 runs from 10 April to 18 May 2026, with distance, moving and elapsed time, a pace column, heart rate and cadence",
   "rows": 19,
   "schema": {
    "fields": [
     {
      "name": "activity_id",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "date",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "start_local",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "sport",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "device",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "distance_km",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "moving_time_min",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "elapsed_time_min",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "pace_min_per_km",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_hr_bpm",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "max_hr_bpm",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_cadence_spm",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "elevation_gain_m",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "elevation_loss_m",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "avg_power_w",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "laps",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "records",
      "type": "number",
      "unit": null,
      "description": null
     },
     {
      "name": "records_file",
      "type": "string",
      "unit": null,
      "description": null
     },
     {
      "name": "load_au",
      "type": "number",
      "unit": null,
      "description": null
     }
    ],
    "missingValues": [
     ""
    ]
   }
  }
 ],
 "sources": [
  {
   "title": "Data-Driven Athletics tutorials (IRSRI, 2027)"
  }
 ]
}
