Skip to content

Commit

Permalink
Update ppg_intervalrelated.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Sep 4, 2023
1 parent 60884fb commit 1ca1c5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neurokit2/ppg/ppg_intervalrelated.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ def ppg_intervalrelated(data, sampling_rate=1000):
)

ppg_intervals = pd.DataFrame.from_dict(intervals, orient="index")
else:
raise ValueError(
"Input should be a dataframe or a dict of dataframes (epochs)."
)

return ppg_intervals

Expand Down

0 comments on commit 1ca1c5d

Please sign in to comment.