File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments