Metadata-Version: 2.1
Name: sensor-position-dataset-helper
Version: 1.0.0
Summary: A helper for the SensorPositionDateset (recorded 2019, published 2021)
Home-page: https://github.com/mad-lab-fau/sensor_position_dataset_helper
License: MIT
Author: Arne Küderle
Author-email: arne.kuederle@fau.de
Requires-Python: >=3.7.1,<3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: GitPython (>=3.1.13,<4.0.0)
Requires-Dist: c3d (>=0.3.0,<0.4.0)
Requires-Dist: imucal (>=2.0.0,<3.0.0)
Requires-Dist: joblib (>=1.0.0,<2.0.0)
Requires-Dist: nilspodlib (>=3.1,<4.0)
Requires-Dist: numpy (>=1.20.0,<2.0.0)
Requires-Dist: pandas (>=1.2.2,<2.0.0)
Requires-Dist: scipy (>=1,<2)
Requires-Dist: tpcp (>=0.3.0,<0.4.0)
Requires-Dist: typing-extensions (>=3.7.4,<4.0.0)
Project-URL: Repository, https://github.com/mad-lab-fau/sensor_position_dataset_helper
Description-Content-Type: text/markdown

# SensorPositionComparison Helper

This is a helper module to extract and handle the data of the [SensorPositionComparison Dataset](TODO: Add updated link).

If you use the dataset and this module, please cite:
TODO: Add citation once published

## Installation and Usage

Install the project via `pip` or `poetry`:

```
pip install sensor_position_dataset_helper
```

## Dataset Handling
You also need to download the actual Dataset from [here](TODO: Add updated link).
If you are member of the matlab, you can also get a git-lfs version from 
[our internal server](https://mad-srv.informatik.uni-erlangen.de/MadLab/data/sensorpositoncomparison).

Then you need to tell this library about the position of the dataset.
Note that the path should point to the top-level repo folder of the dataset.

```python
from sensor_position_dataset_helper import set_data_folder

set_data_folder("PATH/TO/THE_DATASET")
```

You can also overwrite this pass on a per-function basis:

```python
from sensor_position_dataset_helper import get_all_subjects

get_all_subjects(data_folder="PATH/TO/THE_DATASET")
```

If you are using the tpcp-dataset objects, you need to provide the path in the init.

```python
from sensor_position_dataset_helper.tpcp_dataset import SensorPositionDatasetSegmentation

dataset = SensorPositionDatasetSegmentation(dataset_path="PATH/TO/THE_DATASET")
```

## Managing Dataset Revisions

To ensure reproducibility, you should save the version of the dataset that was used for a certain analysis.
This can be easily done by placing the following line at the top of your script:

TODO: Add information for non git versions of the dataset
```python
from sensor_position_dataset_helper import ensure_git_revision

ensure_git_revision(data_folder="PATH/TO/THE_DATASET", version="EXPECTED GIT HASH")
```

This will produce an error, if the dataset version you are using is not the one you expect, or if the dataset repo has 
uncommitted changes.
This will prevent bugs, because you accidentally use the wrong dataset version and will directly document the correct 
version.

