resurfemg.cli.cli module¶
Copyright 2022 Netherlands eScience Center and Univeristy of Twente Licensed under the Apache License, version 2.0. See LICENSE for details.
This file contains functions designed to help with command line interface for reproduction of previous work. Here we are building APIs for pre-, and post- processing.
- resurfemg.cli.cli.main(argv)¶
The main function is called from the command line interface. It runs the parser and subparsers specified in the make_parser function. It can be run via the command line as follows: python -m resurfemg.cli.cli <action> <options> where <action> is one of the following: - simulate_emg - simulate_ventilator - save_to_numpy <options> are the options specific to the action. ————————————————————————–
- resurfemg.cli.cli.make_parser()¶
Set up the parser for the CLI.
- resurfemg.cli.cli.set_common_args(parser)¶
This function defines some arguments that can be provided to any command line function to be defined. See the make_parser function for more details. ————————————————————————–