Skip to content

Fix lack of provided peaks when not necessary - #1

Merged
beccaclements99 merged 11 commits into
beccaclements99:masterfrom
smoia:fix/pidxcall
Mar 12, 2026
Merged

Fix lack of provided peaks when not necessary#1
beccaclements99 merged 11 commits into
beccaclements99:masterfrom
smoia:fix/pidxcall

Conversation

@smoia

@smoia smoia commented Mar 8, 2026

Copy link
Copy Markdown

Necessary for smoia#153

You got the issue right! However the new compute_petco2hrf function allows to either run endtidal interpolation or convolution with a response function or both, so it's important not to skip it if pidx are not provided.

Instead, this solution should failsafe to a pidx that is "None" when nothing is read and comp_endtidal is required. IN your case, you definitely want to skip the endtidal, but you might want to set your response function to "None" if your file is already convolved.

beccaclements99 and others added 2 commits March 9, 2026 17:17
Give an error message if peaks are not provided AND comp_endtidal is True
@smoia

smoia commented Mar 12, 2026

Copy link
Copy Markdown
Author

@beccaclements99 if you bring in this PR we can continue with smoia#153

@beccaclements99
beccaclements99 merged commit 663ac2d into beccaclements99:master Mar 12, 2026
2 checks passed
@smoia
smoia deleted the fix/pidxcall branch March 12, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants