neurodec.mdt.Electromyography#
- class neurodec.mdt.Electromyography(dictionary: dict)#
The electromyography of a single muscle
- property data: ArrayLike#
Returns the EMG data
- property id: int#
Returns the ID of the object
- classmethod new(impulse_trains: ImpulseTrains, force_computation: bool = False) Electromyography #
Create a new electromyography (EMG) recording of a single muscle
Creates a new EMG recording of a muscle. This will initiate a call to the Neurodec Myoelectric Digital Twin (MDT) API that will generate a new EMG recording and return its metadata.
- Parameters
impulse_trains – The impulse trains of the muscle.
force_computation – Boolean flag that allows to bypass a status check. Normally, the API would check if an object with the requested parameters was already present in the database. If this was the case, the API would not request its computation and would simply return its identifier. By setting this flag to True, the user can bypass this logic and force the computation of the resource even if it existed already. The main reason is to allow starting a calculation again in case of unexpected errors.
- Returns
The metadata of the new electromyography recording. If another EMG recording with the same parameters already exits, it will be returned instead of generating a new one.
- wait()#
Wait for the object to be ready