-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow expanded physical signal in
calc_adc_params
(#512)
This PR updates `calc_adc_params` to allow an expanded physical signal to be passed. Previously only a non-expanded signal was allowed. The function will now calculate the `adc_gain` and `baseline` for `p_signal` or `e_p_signal`. I check for the signal that is not `None` and then compute the gain and baseline. I moved the calculation itself to a new function `calc_adc_gain_baseline` so we could call it for either signal type.
- Loading branch information
Showing
1 changed file
with
132 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters