Skip to content

Add ignore_timestamps_error to OpenEphysLegacyRecording - #2174

Closed
alejoe91 wants to merge 1 commit into
SpikeInterface:mainfrom
alejoe91:fix-2107
Closed

alejoe91 wants to merge 1 commit into
SpikeInterface:mainfrom
alejoe91:fix-2107

Conversation

@alejoe91

@alejoe91 alejoe91 commented Nov 6, 2023

Copy link
Copy Markdown
Member

Should fix #2107

@alejoe91 alejoe91 added the extractors Related to extractors module label Nov 6, 2023
)
self._kwargs.update(dict(folder_path=str(Path(folder_path).absolute())))
self._kwargs.update(
dict(folder_path=str(Path(folder_path).absolute())), ignore_timestamps_errors=ignore_timestamps_errors

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This option is very very dangerous because it do not ensure channel alignement!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

unrelated though. If it's an argument, it should be in the self._kwargs. The misalignment problem is NEO-related

@h-mayorquin h-mayorquin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there anything stoping this?

By the way, I think we should use resolve instead of absolute:

https://docs.python.org/3/library/pathlib.html#pathlib.Path.resolve

@samuelgarcia

Copy link
Copy Markdown
Member

@h-mayorquin : This option is bad on neo side, we should not have accept it.
I would prefer to fix this on neo side and not propagate the same mistake in spikeinterface.

In short: with this option we are ignoring gaps (which is ok for me). But for this particular file format the gaps have no garanty to be at the same position across channels which is super super bad because the way the traces are reconstructed are with alignement in mind. So ths time alignement could be wring after gaps.

@h-mayorquin

Copy link
Copy Markdown
Contributor

@samuelgarcia
Thanks for exlpaining Sam. I guess you and @alejoe91 discussed this previously but I did not understand that from the discussion above. You don't want to propagate the option until is fixed on neo.Got you.

@alejoe91

Copy link
Copy Markdown
Member Author

Closing this because we need a proper fix on the NEO side. See this issue: NeuralEnsemble/python-neo#1351

@alejoe91 alejoe91 closed this Nov 22, 2023
@alejoe91
alejoe91 deleted the fix-2107 branch April 12, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extractors Related to extractors module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to sort only a segment of an Open Ephys recording

3 participants