wmglab-duke / ascent

ASCENT (Automated Simulations to Characterize Electrical Nerve Thresholds): A pipeline for sample-specific computational modeling of electrical stimulation of peripheral nerves
Other
16 stars 9 forks source link

Update query class to allow multiple amplitudes when fetching SFAP data #54

Closed btarifi10 closed 3 weeks ago

btarifi10 commented 1 month ago

Context

Currently, when fetching SFAP data, only the SFAP for the first amplitude (referred to as amp0) is pulled. I am currently using ASCENT for my MSc at Imperial College London and needed the functionality to get SFAPs and CNAPs for all the finite amplitudes that were used.

Changes

This pull request adds functionality to the query class to allow for multiple amplitudes' SFAP data to be retrieved. This change is backwards compatible as it is a positional argument with a default value matching the previous functionality.

Testing

No formal tests written, but I have used the function successfully: