diff options
Diffstat (limited to 'controller/fw/tools/dsss_demod_test_runner.py')
-rw-r--r-- | controller/fw/tools/dsss_demod_test_runner.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/controller/fw/tools/dsss_demod_test_runner.py b/controller/fw/tools/dsss_demod_test_runner.py index 27a0c8e..d3c3cfc 100644 --- a/controller/fw/tools/dsss_demod_test_runner.py +++ b/controller/fw/tools/dsss_demod_test_runner.py @@ -12,15 +12,13 @@ import multiprocessing import sqlite3 import time from urllib.parse import urlparse -import functools import tempfile import itertools import numpy as np np.set_printoptions(linewidth=240) -from dsss_demod_test_waveform_gen import load_noise_meas_params, load_noise_synth_params,\ - mains_noise_measured, mains_noise_synthetic, modulate as dsss_modulate +from dsss_demod_test_waveform_gen import load_noise_gen, modulate as dsss_modulate def build_test_binary(nbits, thf, decimation, symbols, cachedir): @@ -46,19 +44,6 @@ def build_test_binary(nbits, thf, decimation, symbols, cachedir): return build_id -@functools.lru_cache() -def load_noise_gen(url): - schema, refpath = url.split('://') - if not path.isabs(refpath): - refpath = path.abspath(path.join(path.dirname(__file__), refpath)) - - if schema == 'meas': - return mains_noise_measured, load_noise_meas_params(refpath) - elif schema == 'synth': - return mains_noise_synthetic, load_noise_synth_params(refpath) - else: - raise ValueError('Invalid schema', schema) - def sequence_matcher(test_data, decoded, max_shift=3): match_result = [] for shift in range(-max_shift, max_shift): |