Skip to content

Commit b08b81b

Browse files
authored
Merge branch 'main' into new-string-check-on-aggregate-sorting
2 parents f00c0bd + 526e308 commit b08b81b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

doc/modules/preprocessing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In this code example, we build a preprocessing chain with two steps:
1919

2020
.. code-block:: python
2121
22-
import spikeinterface.preprocessing import bandpass_filter, common_reference
22+
from spikeinterface.preprocessing import bandpass_filter, common_reference
2323
2424
# recording is a RecordingExtractor object
2525
recording_f = bandpass_filter(recording=recording, freq_min=300, freq_max=6000)

src/spikeinterface/extractors/neoextractors/neobaseextractor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ def __init__(
273273
self.set_property("offset_to_uV", offset_to_uV)
274274

275275
# Add machinery to keep the neo units for downstream users
276-
self.set_property("original_unit", channel_units)
277-
self.set_property("original_gain", neo_gains)
278-
self.set_property("original_offset", neo_offsets)
276+
self.set_property("physical_unit", channel_units)
277+
self.set_property("gain_to_physical_unit", neo_gains)
278+
self.set_property("offset_to_physical_unit", neo_offsets)
279279

280280
# Streams with mixed units are to be used with caution
281281
# We warn the user when this is the case
@@ -288,7 +288,7 @@ def __init__(
288288
if has_mixed_units:
289289
warning_msg = (
290290
"Found a mix of voltage and non-voltage units. "
291-
'Proceed with caution. Check channel units with `recording.get_property("original_unit")`.'
291+
'Proceed with caution. Check channel units with `recording.get_property("physical_unit")`.'
292292
)
293293
warnings.warn(warning_msg)
294294

0 commit comments

Comments
 (0)