SpikeInterface / SpikeInterface/spikeinterface

Should `get_traces` with `return_scaled=True` when the base dtype is float.

Open
#2,871 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core
Dominant language
Python
Stars
847
Forks
280
Avg merge
3d 9h
Merged PRs (30d)
29

Description

From the discussion inhttps://github.com/SpikeInterface/spikeinterface/pull/2864

We have the following lines:

https://github.com/h-mayorquin/spikeinterface/blob/bc0cbd9f74f30cfed9376f984091cd57f3634169/src/spikeinterface/core/baserecording.py#L369-L373

But if the original dtype is float64 this will downcast. Maybe we should change the code a little bit.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/spikeinterface/core/baserecording.py at the linked lines and trace get_traces with return_scaled=True for float and float64 base dtypes. Reproduce the reported downcast, then verify that the resulting traces preserve the original floating-point dtype without changing other scaling behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.