Skip to content

Commit

Permalink
Improve get_data_in_units docstring (#1880)
Browse files Browse the repository at this point in the history
* Improve get_data_in_units docstring

* Update base.py

---------

Co-authored-by: Cody Baker <[email protected]>
  • Loading branch information
rly and CodyCBakerPhD authored Apr 1, 2024
1 parent 9af54a2 commit 2259bed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pynwb/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,14 +343,17 @@ def get_data_in_units(self):
.. math::
out = data * conversion + offset
If the field 'channel_conversion' is present, the conversion factor is applied to each channel separately:
If the field 'channel_conversion' is present, the conversion factor for each channel is additionally applied
to each channel:
.. math::
out_{channel} = data * conversion_{channel} + offset
out_{channel} = data * conversion * conversion_{channel} + offset
NOTE: This will read the entire dataset into memory.
Returns
-------
np.ndarray
:class:`numpy.ndarray`
"""
if "channel_conversion" in self.fields:
Expand Down

0 comments on commit 2259bed

Please sign in to comment.