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

Remove legacy mode for generate_recording #2228

Merged

Conversation

h-mayorquin
Copy link
Collaborator

@h-mayorquin h-mayorquin commented Nov 18, 2023

The time has come.

There is nothing like the joy of deprecation and getting rid of old code.

image
Courtesy of Dall-e

@h-mayorquin h-mayorquin added the deprecations Related to code deprecation label Nov 18, 2023
@h-mayorquin h-mayorquin self-assigned this Nov 18, 2023
@zm711
Copy link
Collaborator

zm711 commented Nov 18, 2023

Someone should really explain to Dall-e that it is really bad for the spines of books to lay flat like that.

@DradeAW
Copy link
Contributor

DradeAW commented Nov 20, 2023

Here you're not deprecating but removing the function, or have I misunderstood?

@alejoe91
Copy link
Member

it was already called legacy, so it was kind of born deprecated

@DradeAW
Copy link
Contributor

DradeAW commented Nov 20, 2023

I was talking about the title of the PR, which sounds ambiguous to me.

I might be mistaking, but I thought:

  • Deprecating = We advise not to use, we will not support / drop this later
  • Removing = You can't use it anymore

@alejoe91
Copy link
Member

Ah I see. Yes let's change the PR name :)

@h-mayorquin
Copy link
Collaborator Author

@DradeAW You are correct. It should be removing. I actually read a discussiong today in the python forums about it, mea culpa.

@h-mayorquin h-mayorquin changed the title Deprecate legacy mode for generate_recording Remove legacy mode for generate_recording Nov 20, 2023
@samuelgarcia
Copy link
Member

I am OK with this but I think we decided to keep 2 versions after a deprecation no ?
here it is only one.

@h-mayorquin
Copy link
Collaborator Author

@samuelgarcia no, we added a removing version at that point in time. Maybe you are confusing this with the modes of the GeneratorRecording? This is about the in-memory version of generate_recording the utility function.

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.

Since we are here two typos in the docstring that can be fixed.

src/spikeinterface/core/generate.py Outdated Show resolved Hide resolved
src/spikeinterface/core/generate.py Outdated Show resolved Hide resolved
@alejoe91 alejoe91 merged commit 1a9dea3 into SpikeInterface:main Nov 22, 2023
9 checks passed
@h-mayorquin h-mayorquin deleted the deprecate_old_recording_mode branch November 29, 2023 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecations Related to code deprecation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants