An FPEM data set is a folder containing a number of data files (e.g. CSV files). An FPEM data set can be validated using
python ./data_set_validator/data_set_validator.py path/to/data/set/folder path/to/schema/folder
This will ensure that
To test on the included data and schema run
python data_set_validator/data_set_validator.py unpd_2018_data_set/data_set/ table_schemas/
This validator only works with Python3.
To restore the Python virtual environment associated with the Python app, run
pip install -r ./data_set_validator/requirements.txt
On some systems Python is called by writing python3
rather than just python
. When the Python binary is called python3
, the pip
binary might be called pip3
.
Alternatively, use the fpcounts/fpem:validator
Docker container.
Start an interactive container session with the local data set mounted.
docker run --name=fpem_validator --volume <full path to data set folder>:/data_set --interactive --tty fpcounts/fpem:validator /bin/sh
For example, if your data set is stored in C:\fpem\unpd2018
the command will be
docker run --name=fpem_validator --volume C:\fpem\unpd2018:/data_set --interactive --tty fpcounts/fpem:validator /bin/sh
When the shell starts, run
/app/validate.sh
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.