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 details)

Uploaded Source

Built Distribution

File details

Details for the file sensor_position_dataset_helper-1.0.0.tar.gz.

File metadata

File hashes

Hashes for sensor_position_dataset_helper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0e18b93610883f5a1d36e5574af5761b74deec8d8ae382ed4c1c662b2bf51464
MD5 47d146810a0f72d9817d7dea5c3ebc58
BLAKE2b-256 93d83423342ea32129a521cefef16ef088beca1f9e3174fa047e5f3d9cf96edd

See more details on using hashes here.

File details

Details for the file sensor_position_dataset_helper-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sensor_position_dataset_helper-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e738ca2d632550bd676196077698eb3201a403e5ce392fb22e8847cf127b10a
MD5 bd50561ba6c4532c97ab88ea35e41618
BLAKE2b-256 5fabed703fc3235b5e84bd92412768eaf4e02e3e1bd44a8db3bc3ac50af44d01

See more details on using hashes here.

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