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

fixed bug in add_suffix and added test #2921

Merged
merged 2 commits into from
May 30, 2024

Conversation

nikhilchandra
Copy link

I found a bug wherein the add_suffix function was adding two dots to the filename instead of just one. For example, add_suffix('myfile', ['raw','bin','path']) returned "myfile..raw" instead of "myfile.raw". I have corrected this bug and also added a new test in test_core_tools.py.

Copy link
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.

@alejoe91 somehow this was adding double dots to the files. It was producing file_path..raw instead of file_path.raw .

@nikhilchandra added a basic test for it.

It looks good to me.

@samuelgarcia samuelgarcia merged commit 93f33e9 into SpikeInterface:main May 30, 2024
11 checks passed
@alejoe91 alejoe91 added the hackathon-24 Contributions during the SpikeInterface Hackathon May 24 label Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hackathon-24 Contributions during the SpikeInterface Hackathon May 24
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants