Skip to content

make some data copies optional#24

Draft
behinger wants to merge 2 commits into
jackz314:mainfrom
behinger:feature-eeglabio-scaling
Draft

make some data copies optional#24
behinger wants to merge 2 commits into
jackz314:mainfrom
behinger:feature-eeglabio-scaling

Conversation

@behinger

@behinger behinger commented Mar 5, 2026

Copy link
Copy Markdown

As discussed in #16, I introduce a new "scale_data=True" argument, which allows to provide data already scaled to uV. This saves one copy of the data in RAM without introducing side-effects.

Further, the precision conversion is done in-place in case scale_data=True already made a copy, but not if scale_data=False because we would potentially introduce side-effects

@behinger

behinger commented Mar 5, 2026

Copy link
Copy Markdown
Author

I had a brief look to understand how the tests are working; but I couldnt really figure out how to run them locally. Therefore, right now there is no unit test associated with this functionality

@larsoner

larsoner commented Mar 6, 2026

Copy link
Copy Markdown
Collaborator

I had a brief look to understand how the tests are working; but I couldnt really figure out how to run them locally. Therefore, right now there is no unit test associated with this functionality

Should just be for example pytest eeglabio/tests/test_raw.py from the repo root (similar to MNE-Python)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants