From 2fa5a13b3c8a30bf9a3f5471f69242bd9fed6c16 Mon Sep 17 00:00:00 2001 From: Abhimanyu Susobhanan Date: Wed, 20 Sep 2023 14:47:44 -0500 Subject: [PATCH] assignment --- src/pint/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pint/utils.py b/src/pint/utils.py index cf3cad814..785ae36be 100644 --- a/src/pint/utils.py +++ b/src/pint/utils.py @@ -1345,7 +1345,7 @@ def wavex_setup(model, T_span, freqs=None, n_freqs=None): if len(freqs) == 1: model.WXFREQ_0001.quantity = freqs else: - np.array(freqs) + freqs = np.array(freqs) freqs.sort() if min(np.diff(freqs)) < nyqist_freq: warnings.warn( @@ -1425,7 +1425,7 @@ def dmwavex_setup(model, T_span, freqs=None, n_freqs=None): if len(freqs) == 1: model.DMWXFREQ_0001.quantity = freqs else: - np.array(freqs) + freqs = np.array(freqs) freqs.sort() if min(np.diff(freqs)) < nyqist_freq: warnings.warn(