We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13b465a commit b0a16f7Copy full SHA for b0a16f7
sourcespec/spectrum.py
@@ -443,8 +443,8 @@ def make_logspaced_from_linear(self, which='data'):
443
)
444
# Avoid extrapolation of outer values if there are no NaN values
445
if nan_idxs.size == 0:
446
- data_logspaced[self.freq_logspaced < freq[0]] = np.nan
447
- data_logspaced[self.freq_logspaced > freq[-1]] = np.nan
+ data_logspaced[self.freq_logspaced < freq[0]] = 1e-9
+ data_logspaced[self.freq_logspaced > freq[-1]] = 1e-9
448
if which == 'data':
449
self.data_logspaced = data_logspaced
450
else:
0 commit comments