pyWoodway
Parties Involved
Institution: Munroe Meyer Institute in the University of Nebraska Medical Center
Laboratory: Virtual Reality Laboratory
Advisor: Dr. James Gehringer
Developer: Walker Arce
Motivation
This Python library was written to facilitate closed-loop experimental protocol for biomechanics and motor-control related research.
Installation
Clone this repository, cd into the directory using either your virtual environment or your local environment, and run:
python setup.py install
Usage
from pywoodway.treadmill import SplitBelt, find_treadmills
import time
a_sn = 'FTHCUWVAA'
b_sn = 'FTHCUQ9IA'
a_port, b_port = find_treadmills(a_sn=a_sn, b_sn=b_sn)
if a_port is not None and b_port is not None:
print("Split belt treadmill found on ports", a_port, "and", b_port)
sb = SplitBelt(a_port.name, b_port.name)
sb.start_belts(True, False, True, False)
print("Belt A set to 2 MPH and belt B set to -2 MPH.")
sb.set_speed(2.0, -2.0)
print("Set incline to 20%")
sb.set_elevations(20.0)
time.sleep(10)
print("Split belt speed:", sb.get_speeds())
print("Split belt incline:", sb.get_elevations())
print("Belt A set to -2 MPH and belt B set to 2 MPH.")
# sb.set_speed(-2.0, 2.0)
time.sleep(10)
print("Split belt speed:", sb.get_speeds())
sb.stop_belts()
print("Split belt is stopped.")
sb.close()
else:
print("Split belt treadmill was not found.")
To find your Woodway treadmill with the script, plug in your treadmill to your computer and execute the following script,
from serial.tools import list_ports
ports = list_ports.comports()
for port in ports:
print(port.serial_number)
Write down the serial number for each treadmill (if using a split belt these are marked A and B) and pass those as arguments to the find_treadmills() function.
Citation
@misc{Arce_pyWoodway_2021,
author = {Arce, Walker and Gehringer, James},
month = {8},
title = {{pyWoodway}},
url = {https://github.com/Munroe-Meyer-Institute-VR-Laboratory/pyWoodway},
year = {2021}
}
Metadata
Release files for pyWoodway 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyWoodway-0.2.4.tar.gz | 6.3 kB | Without provenance | Details for pyWoodway-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyWoodway-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for pyWoodway-0.2.4-py3-none-any.whl |
Total release size: 12.6 kB
Release files / pyWoodway-0.2.4.tar.gz
| Download URL | pyWoodway-0.2.4.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4cc470cfd1edd868733f8e18804ff66d2dfe9dbf07e193daa5d28b47e7f758d
|
|
BLAKE2b-256 checksum How to use checksums |
db5bbd8fdea385d0d260b4c33200cfe62c19cbd6a31fc71ab53116561c1af6e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / pyWoodway-0.2.4-py3-none-any.whl
| Download URL | pyWoodway-0.2.4-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
766c464c4ec0918ad63e8faf118226552f4c1a9a1cc017007cc9413df6e238b5
|
|
BLAKE2b-256 checksum How to use checksums |
6605d1e737688b7d6cc224ea419dcbb03ea70f399ee42c0fc224bc3fe37ca41f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for pyWoodway 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.