Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,19 @@ npx simple-git-hooks
```

If linting fails, the commit will be blocked until issues are resolved.

## Toronto data conversion

The Toronto Sankey data is generated via `data/toronto/scripts/convert_toronto_sankey.py`. The
script supports both the original dataset (`legacy`) and the new 2024 operating budget dataset:

```bash
# Legacy dataset (writes to data/toronto)
python3 data/toronto/scripts/convert_toronto_sankey.py --dataset legacy

# 2024 Operating Budget dataset (writes to data/toronto-operating)
python3 data/toronto/scripts/convert_toronto_sankey.py --dataset operating
```

Use `--output-dir` to override the destination or pass custom spreadsheet paths if the files live
elsewhere.
30 changes: 15 additions & 15 deletions data/british-columbia/sankey.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
{
"name": "Legislative Assembly \u2192 Adjustment of Prior Year Accrual",
"amount": -3e-05
"amount": -3e-5
}
]
},
Expand Down Expand Up @@ -112,7 +112,7 @@
},
{
"name": "Office of the Premier \u2192 Local Government (Transferred from Ministry of Municipal Affairs)",
"amount": 1.62e-07
"amount": 1.62e-7
}
]
},
Expand Down Expand Up @@ -300,7 +300,7 @@
},
{
"name": "Ministry of Citizens Services \u2192 Services to Citizens and Businesses - BC Registry Services",
"amount": 1e-06
"amount": 1e-6
},
{
"name": "Ministry of Citizens Services \u2192 Office of the Chief Information Officer",
Expand Down Expand Up @@ -487,7 +487,7 @@
},
{
"name": "Ministry of Energy and Climate Solutions \u2192 Adjustment of Prior Year Accrual",
"amount": -1.1466e-05
"amount": -1.1466e-5
}
]
},
Expand Down Expand Up @@ -621,7 +621,7 @@
},
{
"name": "Ministry of Finance \u2192 Executive and Support Services(Transferred from Jobs, Economic Development and Innovation)",
"amount": 4.3325e-05
"amount": 4.3325e-5
},
{
"name": "Ministry of Finance \u2192 Executive and Support Services(Transferred from Mental Health and Addictions)",
Expand Down Expand Up @@ -848,7 +848,7 @@
},
{
"name": "Ministry of Housing and Municipal Affairs \u2192 Adjustment of Prior Year Accrual",
"amount": -5.2397e-05
"amount": -5.2397e-5
}
]
},
Expand Down Expand Up @@ -992,7 +992,7 @@
},
{
"name": "Ministry of Labour \u2192 WorkSafeBC Funded Services",
"amount": 1e-06
"amount": 1e-6
},
{
"name": "Ministry of Labour \u2192 Labour Policy and Legislation",
Expand All @@ -1008,7 +1008,7 @@
},
{
"name": "Ministry of Labour \u2192 Adjustment of Prior Year Accrual",
"amount": -1.0496e-05
"amount": -1.0496e-5
}
]
},
Expand Down Expand Up @@ -1189,7 +1189,7 @@
},
{
"name": "Ministry of Public Safety and Solicitor General \u2192 Liquor Regulation - Liquor Regulation",
"amount": 1e-06
"amount": 1e-6
},
{
"name": "Ministry of Public Safety and Solicitor General \u2192 Cannabis Regulation - Cannabis Regulation",
Expand All @@ -1201,7 +1201,7 @@
},
{
"name": "Ministry of Public Safety and Solicitor General \u2192 Gaming Policy and Enforcement - Distribution of Gaming Proceeds",
"amount": 1e-06
"amount": 1e-6
},
{
"name": "Ministry of Public Safety and Solicitor General \u2192 Cannabis, Consumer Protection and Corporate Policy - Cannabis, Consumer Protection and Corporate Policy",
Expand Down Expand Up @@ -1412,7 +1412,7 @@
},
{
"name": "Ministry of Transportation and Transit \u2192 Commercial Transportation Regulation - Container Trucking Commissioner",
"amount": 5.5905e-05
"amount": 5.5905e-5
},
{
"name": "Ministry of Transportation and Transit \u2192 Commercial Transportation Regulation - Passenger Transportation Branch",
Expand Down Expand Up @@ -1506,11 +1506,11 @@
},
{
"name": "Management of Public Funds and Debt \u2192 Adjustment of Prior Year Accrual - Adjustment of Prior Year Accrual",
"amount": -7.5e-07
"amount": -7.5e-7
}
]
},
{
{
"name": "Other Appropriations",
"children": [
{
Expand Down Expand Up @@ -1609,7 +1609,7 @@
},
{
"name": "Other Appropriations \u2192 Adjustment of Prior Year Accrual",
"amount": -0.304940840
"amount": -0.30494084
}
]
}
Expand Down Expand Up @@ -1769,4 +1769,4 @@
}
]
}
}
}
Loading