Docker TutorialΒΆ
Install Docker: Ensure you have Docker installed on your system. Get Docker
Pull the Docker image:
docker pull cmidair/wristpy:main
Run the Docker image with your data:
docker run -it --rm \ -v "/local/path/to/data:/data" \ -v "/local/path/to/output:/output" \ cmidair/wristpy:main
Replace
/local/path/to/datawith the path to your input data directory and/local/path/to/outputwith where you want results saved.To run a single file, we simply need to modify the mounting structure for the docker call slightly:
docker run -it --rm \ -v "/local/path/to/data/file.bin:/data/file.bin" \ -v "/local/path/to/output:/output" \ cmidair/wristpy:main
Customizing the Pipeline:
The Docker image supports multiple input variables to customize processing. You can set these by simply chaining these inputs as you would for the CLI input:
docker run -it --rm \
-v "/local/path/to/data/file.bin:/data/file.bin" \
-v "/local/path/to/output:/output" \
cmidair/wristpy:main /data --output /output --epoch-length 5 --nonwear-algorithm ggir --nonwear-algorithm detach --thresholds 0.1 0.2 0.4