Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] various docs fixes #834

Merged

Conversation

danibene
Copy link
Collaborator

@danibene danibene commented May 30, 2023

Description

Seems I forgot to include all the outputs in the docstring for intervals_process().

Proposed Changes

I added interpolation_rate to the docstring of the intervals_process() function so that it reflects what the function does.

update: I also made some changes to address some of the warnings in the documentation check

Checklist

Here are some things to check before creating the PR. If you encounter any issues, do let us know :)

  • I have read the CONTRIBUTING file.
  • My PR is targetted at the dev branch (and not towards the master branch).

@codecov-commenter
Copy link

codecov-commenter commented May 30, 2023

Codecov Report

Patch coverage: 20.00% and project coverage change: -0.01 ⚠️

Comparison is base (c1b1b9d) 53.83% compared to head (b9b2cde) 53.82%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #834      +/-   ##
==========================================
- Coverage   53.83%   53.82%   -0.01%     
==========================================
  Files         295      295              
  Lines       13800    13802       +2     
==========================================
  Hits         7429     7429              
- Misses       6371     6373       +2     
Impacted Files Coverage Δ
neurokit2/complexity/complexity.py 37.93% <ø> (ø)
neurokit2/complexity/fractal_tmf.py 28.57% <0.00%> (ø)
neurokit2/complexity/optim_complexity_tolerance.py 16.55% <ø> (ø)
neurokit2/hrv/hrv_nonlinear.py 66.66% <0.00%> (ø)
neurokit2/hrv/intervals_process.py 90.00% <ø> (ø)
neurokit2/ppg/ppg_intervalrelated.py 16.21% <ø> (ø)
neurokit2/rsp/rsp_process.py 96.77% <ø> (ø)
neurokit2/signal/signal_plot.py 66.66% <0.00%> (ø)
neurokit2/eeg/mne_channel_extract.py 64.70% <100.00%> (ø)

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Trying to address 
D:\a\NeuroKit\NeuroKit\neurokit2\complexity\optim_complexity_tolerance.py:docstring of neurokit2.complexity.optim_complexity_tolerance.complexity_tolerance:181: WARNING: Duplicate explicit target name: "study".

https://github.com/neuropsychology/NeuroKit/actions/runs/5124886426/jobs/9217327755?pr=834
trying to address D:\a\NeuroKit\NeuroKit\neurokit2\complexity\complexity.py:docstring of neurokit2.complexity.complexity.complexity:129: WARNING: Duplicate explicit target name: "study".

https://github.com/neuropsychology/NeuroKit/actions/runs/5124886426/jobs/9217327755?pr=834

in case the issue is that the word "study" is associated with 2 links?
Trying to address
D:\a\NeuroKit\NeuroKit\neurokit2\complexity\fractal_tmf.py:112: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead
  w[i] = fractal_dfa(surro, multifractal=True, show=False)[0]["Width"]

https://github.com/neuropsychology/NeuroKit/actions/runs/5127313194/jobs/9222791783?pr=834
D:\a\NeuroKit\NeuroKit\neurokit2\signal\signal_plot.py:141: FutureWarning: RangeIndex.is_integer is deprecated. Use pandas.api.types.is_integer_dtype instead.
  if sampling_rate is None and signal.index.is_integer():

https://github.com/neuropsychology/NeuroKit/actions/runs/5127603215/jobs/9223420227?pr=834
aiming to address

D:\a\NeuroKit\NeuroKit\neurokit2\eeg\mne_channel_extract.py:67: FutureWarning: The default for pick_channels will change from ordered=False to ordered=True in 1.5 and this will result in a change of behavior because the resulting channel order will not match. Either use a channel order that matches your instance or pass ordered=False.
@danibene danibene changed the title [Docs] add interpolation_rate to intervals_process() docstring [Docs] various docs fixes May 31, 2023
@pull-request-size pull-request-size bot added size/M and removed size/S labels Jun 2, 2023
@DominiqueMakowski
Copy link
Member

Amazing, thanks so much Dani!

@DominiqueMakowski DominiqueMakowski merged commit d821ef6 into neuropsychology:dev Jun 5, 2023
@danibene danibene deleted the docs/intervals_process_returns branch June 5, 2023 09:34
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.

3 participants