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

Unify 'defaults' and use of quotations across docstrings #2134

Merged
merged 45 commits into from
Oct 31, 2023

Conversation

alejoe91
Copy link
Member

@alejoe91 alejoe91 commented Oct 26, 2023

inspired by @zm711 :)

The way we defined defaults was very non-homogeneous ((default ...), , by default ..., default=...). Made a first pass to unify this as:

param_name: type, default: ...

Might have missed some, but should have caught most of them!

And still missing a couple of modules (sorters, sortingcomponents)

@zm711
Copy link
Collaborator

zm711 commented Oct 26, 2023

@alejoe91

This is super cool! And tons of work. You're a beast man!

Copy link
Collaborator

@zm711 zm711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more fixes on my pass through :)

src/spikeinterface/core/waveform_tools.py Outdated Show resolved Hide resolved
src/spikeinterface/core/waveform_tools.py Outdated Show resolved Hide resolved
src/spikeinterface/core/waveform_tools.py Outdated Show resolved Hide resolved
src/spikeinterface/core/waveform_tools.py Outdated Show resolved Hide resolved
src/spikeinterface/extractors/mdaextractors.py Outdated Show resolved Hide resolved
src/spikeinterface/widgets/amplitudes.py Outdated Show resolved Hide resolved
src/spikeinterface/widgets/template_similarity.py Outdated Show resolved Hide resolved
src/spikeinterface/widgets/traces.py Outdated Show resolved Hide resolved
src/spikeinterface/widgets/traces.py Outdated Show resolved Hide resolved
src/spikeinterface/widgets/unit_waveforms.py Outdated Show resolved Hide resolved
@alejoe91 alejoe91 added the documentation Improvements or additions to documentation label Oct 27, 2023
alejoe91 and others added 24 commits October 27, 2023 11:33
@alejoe91 alejoe91 marked this pull request as ready for review October 27, 2023 10:32
@alejoe91
Copy link
Member Author

Thanks @zm711

I did another round! I would say that >95% are fixed and this is mergeable :)

Copy link
Collaborator

@zm711 zm711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! and you even unified the quote marks!

Just one typo I noticed in case you want to hit it while you're at it.

Copy link
Collaborator

@zm711 zm711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple more, but I need to run for the day.

src/spikeinterface/core/base.py Show resolved Hide resolved
src/spikeinterface/core/baserecordingsnippets.py Outdated Show resolved Hide resolved
@alejoe91 alejoe91 changed the title Unify 'defaults' across docsrtings Unify 'defaults' and use of quotations across docsrtings Oct 27, 2023
@alejoe91 alejoe91 added this to the 0.99.0 milestone Oct 27, 2023
@samuelgarcia
Copy link
Member

@alejoe91 : thank you so much for this amazing and crutial improvement.

Copy link
Collaborator

@zm711 zm711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few more that I saw. Also totally mergeable without these and we can fix them later since every commit runs the whole test suite.

src/spikeinterface/core/baserecordingsnippets.py Outdated Show resolved Hide resolved
src/spikeinterface/core/baserecordingsnippets.py Outdated Show resolved Hide resolved
src/spikeinterface/core/baserecordingsnippets.py Outdated Show resolved Hide resolved
src/spikeinterface/core/core_tools.py Outdated Show resolved Hide resolved
src/spikeinterface/core/job_tools.py Outdated Show resolved Hide resolved
src/spikeinterface/core/job_tools.py Outdated Show resolved Hide resolved
src/spikeinterface/curation/curationsorting.py Outdated Show resolved Hide resolved
src/spikeinterface/curation/sortingview_curation.py Outdated Show resolved Hide resolved
@alejoe91 alejoe91 changed the title Unify 'defaults' and use of quotations across docsrtings Unify 'defaults' and use of quotations across docstrings Oct 31, 2023
@samuelgarcia samuelgarcia merged commit 886530a into SpikeInterface:main Oct 31, 2023
9 checks passed
@alejoe91 alejoe91 deleted the unify-docstrings-defaults branch April 12, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants