Skip to main content

A helper for the SensorPositionDateset (recorded 2019, published 2021)

Project description

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.

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.

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:

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.

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sensor_position_dataset_helper-1.0.0.tar.gz (14.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page