renamed and fully integrated lowpass filter

This commit is contained in:
2026-07-12 18:32:40 +02:00
parent eaf23abec6
commit e4cdea3b07
3 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -148,7 +148,7 @@ class ADC_Result(Resultable, Drawable, DamarisFFT, Signalpath):
return self.is_clipped
def digital_filter(self, cutoff, numtaps=None):
def lowpass(self, cutoff, numtaps=None):
"""
Apply a zero-phase lowpass FIR filter to all channels.
@@ -185,12 +185,12 @@ class ADC_Result(Resultable, Drawable, DamarisFFT, Signalpath):
Examples
--------
>>> # Lowpass at 1 MHz (taps auto-computed, ~40)
... filtered = adc.digital_filter(cutoff=1e6)
... filtered = adc.lowpass(cutoff=1e6)
>>> # Lowpass at 500 kHz with fixed 63 taps
... filtered = adc.digital_filter(cutoff=500e3, numtaps=63)
... filtered = adc.lowpass(cutoff=500e3, numtaps=63)
"""
if not self.contains_data():
raise RuntimeError("digital_filter: no data present")
raise RuntimeError("lowpass: no data present")
nyquist = self.sampling_rate / 2.0
cutoff = float(cutoff)
+1 -1
View File
@@ -1366,7 +1366,7 @@ class ScriptWidgets:
class import from as return yield while continue break assert None True False AccumulatedValue
Accumulation MeasurementResult ADC_Result Experiment synchronize sleep result data
issubclass min max abs pow range xrange log_range lin_range staggered_range file
combine_ranges interleaved_range get_sampling_rate uses_statistics write_to_csv write_to_hdf
combine_ranges interleaved_range get_sampling_rate uses_statistics write_to_csv write_to_hdf lowpass
get_job_id get_description set_description get_xdata get_ydata set_xdata set_ydata
ttl_pulse ttls rf_pulse state_start state_end wait record loop_start loop_end set_frequency
set_pfg set_dac set_phase set_pts_local get_length set_title get_title add_lineplotdata
+1
View File
@@ -191,6 +191,7 @@
<keyword>set_pts_local</keyword>
<keyword>wait</keyword>
<keyword>record</keyword>
<keyword>lowpass</keyword>
</keywordlist>
<keywordlist style="datatype">