-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
# data | ||
data processing | ||
# Silnice v Číslech - Data | ||
Data processing for silnicevcislech.cz | ||
|
||
Processing is implemented using Snakemake. | ||
|
||
Hatch is set up for operation (Hatch needs to be installed first): | ||
* To run the workflow: `hatch run snakemake` | ||
* To run the test suite: `hatch run tests:all` | ||
* To check conventions `hatch run conventions:check` | ||
* To format the code using `black`: `hatch run conventions:format` | ||
* To sort the imports using `isort`: `hatch run conventions:imports` | ||
|
||
## Crash data from Policie ČR | ||
The workflow requires crash data from Policie ČR as input. Download them here: https://www.policie.cz/clanek/statistika-nehodovosti-900835.aspx | ||
|
||
Place the archives for each year in their directories such as `workflow/data/2016/archive.rar`. Currently the archives need to be renamed to `archive.rar`. Processing supports data format from 2016 onward and files for each year have to be present. | ||
|
||
After the workflow succeeds, the results are placed in `workflow/results.json`. |