fish_serial.py is a Python 3 code to display a voluntary motion paradigm. Uses image-files found in the zipped folder "images". Records force while subject presses on the foot pedal (built by Francesco Santini and Xeni Deligianni) and display the applied force overlaid on the predefined force surve in real time. It needs pygamezero package. Before running the code, check COM port. To start, run fisch_serial.py in Python. Reading and logging of serial port starts with run => LogFile_data_time. After start: type amplitude of force that you expect or aim at. Press <- to pause fish and bubbles and logging of trigger. Press -> to start fish and bubbles and logging of trigger. Press arrow up to redraw bubbles. Press t to send reset_tare signal to green box. Press m or p to change force amplitude.
Version 0.1.0 Initial release: Code associated with "Cine phase contrast magnetic resonance imaging of calf muscle contraction in pediatric patients with cerebral palsy and healthy children: comparison of voluntary motion and electrically evoked motion" by Weidensteiner et al.
@https://www.medrxiv.org/content/10.1101/2023.08.02.23293313v1
This repository is developed and maintained by the Basel Muscle MRI Group.
This work is licensed under a Creative Commons Attribution 3.0 International License.
✉️ Feel free to contribute, report issues, or reach out to collaborate!