From 005ca1fbc9fa66859f954b8f23f9ec1f138d72cb Mon Sep 17 00:00:00 2001 From: Patricia Nallin Date: Mon, 21 Nov 2022 11:34:31 -0300 Subject: [PATCH] bug on read dsp db --- .gitignore | 1 + src/pydrs/base.py | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index f1d1e05..b1427b8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ *.py[cod] *.so *.spec +*.swp .Python .code-workspace .coverage diff --git a/src/pydrs/base.py b/src/pydrs/base.py index 6a2fbb3..fc5372d 100644 --- a/src/pydrs/base.py +++ b/src/pydrs/base.py @@ -2321,14 +2321,14 @@ def get_dsp_modules_bank( ].append(dsp_coeffs) if return_floathex: - dsp_modules_bank[dsp_classes_names[dsp_class]]["coeffs"] = [ + dsp_modules_bank[dsp_classes_names[dsp_class]]["coeffs"].append([ dsp_coeffs, dsp_coeffs_hex, - ] + ]) else: - dsp_modules_bank[dsp_classes_names[dsp_class]][ - "coeffs" - ] = dsp_coeffs + dsp_modules_bank[dsp_classes_names[dsp_class]]["coeffs"].append( + dsp_coeffs + ) return dsp_modules_bank