| File | Description |
|---|---|
| facilities.csv | CSV version of facDB, as of the latest build on the develop branch |
| facilities.gdb.zip | GeoDatabase version of facDB, as of the latest build on the develop branch |
| facilities.shp.zip | Shapefile version of facDB, as of the latest build on the develop branch |
| qc_captype.csv | QAQC for consistency in capacity type |
| qc_classification.csv | QAQC for consistency in grouping information |
| qc_diff.csv | QAQC for change in distribution of number of records by facsubgroup/group/domain between current and previous version |
| qc_mapped.csv | QAQC for change in mapped records by facdomain, facgroup, facsubgrp, factype, and datasource |
| qc_operator.csv | QAQC for consistency in operator information |
| qc_oversight.csv | QAQC for consistency in oversight information |
| qc_recordcounts.csv | QAQC for number of records in source vs facdb |
| qc_subgrpbins.csv | QAQC for number of BINs per subgroup |
- We strongly advise that you use VScode for development of this project
- The
.devcontainercontains all development configuration you would need, including:psqlis preinstalledpython-geosupportis installed with 21a geosupportpoetryis installed and initializedpre-commitis also preconfigured and no additional setup is needed
- If you do not have vscode setup, don't worry, you can still develop using docker-compose
- initialize docker-compose:
./facdb.sh init - the facdb.sh script is a one to one wrapper of the python facdb cli, e.g.
./facdb.sh --help - docker-compose is also used to test PR and build the dataset in github actions
- initialize docker-compose:
π‘ Note: the cli documentation might not always be up-to-date, to see the latest commands and features, use
facdb --help
- Create a pipeline function under the name of the function, e.g.
dcp_colp - If you don't want to run every command with
poetry run, we recommend you activate the virtual environment bypoetry shell facdb --helpto show instructions
foo@bar:~$ facdb --help
Usage: facdb [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
build Building facdb based on facdb_base
clear clear will clear the cached dataset created while reading a...
dataloading Load SQL dump datasets from data library e.g.
export create file export
init Initialize empty facdb_base table and create procedures and...
qaqc Running QAQC commands
run This function is used to execute the python portion of a...
sql this command will execute any given sql script against the...Examples
facdb initinitialization of the database withfacdb_base, functions and stored proceduresfacdb dataloadingload supplementry datasets from data-library (e.g.dcp_mappluto_wi,doitt_buildingcentroids)facdb runfacdb run -n nysed_activeinstitutionsto execute both the python and sql part specified indatasets.ymlfacdb run -n nysed_activeinstitutions --pythonto execute the python part onlyfacdb run -n nysed_activeinstitutions --sqlto execute the sql part onlyfacdb run -n nysed_activeinstitutions --python --sqlis the same asfacdb run -n nysed_activeinstitutionsfacdb run --allto run all available data piplines defined indatasets.yml
facdb sqlfacdb sql -f facdb/sql/dcp_colp.sqlto execute one scriptfacdb sql -f facdb/sql/dcp_colp.sql -f some/other/script.sqlto execute multiple scripts
facdb clearfacdb clear -n nysed_activeinstitutionsto clear cache for nysed_activeinstitutionsfacdb clear --allto clear all cache for all datasets
facdb buildbuild facdb from loaded source tables and produce QAQC tables