Correction to calculation for maximum frequency of interest.

这个提交包含在:
Craig Warren
2017-12-20 15:28:03 +00:00
父节点 50a483ac92
当前提交 4548644399

查看文件

@@ -259,7 +259,7 @@ def dispersion_analysis(G):
# Set maximum frequency to a threshold drop from maximum power, ignoring DC value # Set maximum frequency to a threshold drop from maximum power, ignoring DC value
try: try:
freqthres = np.where(power[freqmaxpower:] < -G.highestfreqthres)[0][0] freqthres = np.where(power[freqmaxpower:] < -G.highestfreqthres)[0][0] + freqmaxpower
results['maxfreq'].append(freqs[freqthres]) results['maxfreq'].append(freqs[freqthres])
except: except:
results['error'] = 'unable to calculate maximum power from waveform, most likely due to undersampling.' results['error'] = 'unable to calculate maximum power from waveform, most likely due to undersampling.'