Skip to content

Commit

Permalink
Improve get_data_in_units docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Apr 1, 2024
1 parent af63c5f commit 76b7504
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
np.array
"""
if "channel_conversion" in self.fields:
Expand Down

0 comments on commit 76b7504

Please sign in to comment.