Skip to content

Conversation

@1himan
Copy link

@1himan 1himan commented Jan 14, 2026

Reference issue (if any)

Fixes #12701

What does this implement/fix?

Additional information

Just a minor improvement for more clarity in the documentation.
An added notes section under raw.to_data_frame(), explicitly explaining the default behaviour of that api, which is to convert the data to SI units before returning it by default.

@1himan
Copy link
Author

1himan commented Jan 14, 2026

Do I have to describe the changes in the changelog as well, for such a minor change?

@tsbinns
Copy link
Contributor

tsbinns commented Jan 14, 2026

I would argue the unit conversion behaviour is already described in the scalings parameter description of to_data_frame.

Also, the note has it the wrong way around: data is stored internally in standard (SI) units (e.g., V for EEG data), but what the method returns is the data scaled into a more appropriate range (e.g., uV for EEG data).

Comment on lines +2458 to +2459
This method by default converts the data(:class:`pandas.DataFrame`) to its
standard unit and then returns it. See :ref:`units` and :term:`data channels`.
Copy link
Member

Choose a reason for hiding this comment

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

this is inaccurate. Please read the param description for scalings in this method's docstring

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.

Default units in raw.to_data_frame()

3 participants