diff --git a/wferrors.py b/wferrors.py index c4955a4..e80c08f 100644 --- a/wferrors.py +++ b/wferrors.py @@ -97,9 +97,9 @@ def amplitude_phase_modification_fd(**kwds): + delta_phase ) elif dict_waveform_modification['modification_type'] == 'cubic_spline_nodes': - f_lower = (dict_waveform_modification.get('f_lower_wferror', + f_lower = dict_waveform_modification.get('f_lower_wferror', default=dict_waveform_modification['f_lower']) - ) + f_high_wferror = dict_waveform_modification['f_high_wferror'] n_nodes_wferror = int(dict_waveform_modification['n_nodes_wferror']) wf_nodal_points = numpy.logspace( @@ -241,9 +241,9 @@ def amplitude_phase_modification_both_polarization_fd(**kwds): ) + delta_phase_cross elif modification_type == 'cubic_spline_nodes': - f_lower = (dict_waveform_modification.get('f_lower_wferror', + f_lower = dict_waveform_modification.get('f_lower_wferror', default=dict_waveform_modification['f_lower']) - ) + f_high_wferror = dict_waveform_modification['f_high_wferror'] n_nodes_wferror = int(dict_waveform_modification['n_nodes_wferror'])