Skip to content

Fix recording slicing docstrings and documentation typo#3939

Merged
h-mayorquin merged 3 commits intoSpikeInterface:mainfrom
kushaangupta:main
May 20, 2025
Merged

Fix recording slicing docstrings and documentation typo#3939
h-mayorquin merged 3 commits intoSpikeInterface:mainfrom
kushaangupta:main

Conversation

@kushaangupta
Copy link
Copy Markdown
Contributor

Closes #3938

Copy link
Copy Markdown
Collaborator

@h-mayorquin h-mayorquin left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution. This is more explicit and fixes a place where the documentation was wrong.

As mentioned in the issue I think we should set default values None but this should be done in a different PR.

----------
start_time : float, optional
The start time in seconds. If not provided it is set to 0.
Start time in seconds. If None, defaults to the beginning of the recording.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This an important change. 0 is in fact wrong.

Thanks for the fix.

Copy link
Copy Markdown
Member

@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.

Thanks! And thanks for checking on the actual behavior!

@h-mayorquin , I thought the idea with no default was that we force the user to make a choice rather than silently do anything. So I agree better for a different PR where we can discuss what we think default behavior should be.

@zm711 zm711 added the documentation Improvements or additions to documentation label May 20, 2025
@h-mayorquin h-mayorquin merged commit 0841834 into SpikeInterface:main May 20, 2025
15 checks passed
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.

Confusing default behavior for time_slice docstring

3 participants