Data analysis examples and export tool for the eMOTIONAL Cities project. Data used in the notebooks has been made publicly available in Amazon Simple Storage Service (S3) buckets.
More information about sample data sharing can be found in the eMOTIONAL Cities data-share repository.
Visual Studio Code: All notebooks have been tested in Visual Studio Code on a Windows platform. Tests in other platforms and environments are forthcoming and will be added here.
We recommend uv for python version, environment, and package dependency management. However, any other tool compatible with the pyproject.toml
standard should work.
- Install uv
- Install Python Extension for VS Code
git clone https://github.com/emotional-cities/notebooks.git
cd notebooks
uv sync
Open the notebook and select the .venv
environment kernel.
Before trying to export datasets, make sure you can run the notebooks on an example dataset to validate all dependencies and required environment configuration is valid.
- Open a python activated command line in the folder
src/ingestion
. - Run the
export.py
module:
python -m export <DATA_ROOT_PATH> --contacts contacts.json
The contacts.json
file provides metadata about institutional contacts that should be attached to the data export. An example file is provided below:
{
"contacts": [
{
"name": "FirstName LastName",
"institution": "Contoso",
"email": "[email protected]"
},
{
"name": "AnotherName AnotherLast",
"institution": "Contoso",
"email": "[email protected]"
}
]
}
Note
If your dataset contains missing UBX synchronization signals you can provide fallback schemas to be used in case of failure, e.g.
python -m export <DATA_ROOT_PATH> --contacts contacts.json --schema outdoor missing_sync
This repository was developed for the eMOTIONAL CITIES Project, which received funding from European Union’s Horizon 2020 research and innovation programme, under the grant agreement No 945307. The eMOTIONAL CITIES Project is a consortium of 12 partners co-coordinated by IGOT and FMUL, taking place between 2021 and 2025. More information at https://emotionalcities-h2020.eu/