Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xaratustrah committed Feb 7, 2023
1 parent 837d5e9 commit e7f025c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions iqtools/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,20 @@ def main():
if args.fft:
log.info('Generating FFT plot.')
f1, p1, _ = iq_data.get_fft()
plot_spectrum(f1, p1, iq_data.center, iq_data.span, dbm=False,
span=args.span, filename='{}_fft'.format(outfilename_wo_ext))
plot_spectrum(f1, p1, cen=iq_data.center, span=args.span, dbm=False,
filename='{}_fft'.format(outfilename_wo_ext))

if args.psd:
log.info('Generating PSD plot.')
f2, p2 = iq_data.get_pwelch()
plot_spectrum(f2, p2, iq_data.center, iq_data.span, dbm=True,
span=args.span, filename='{}_psd_welch'.format(outfilename_wo_ext))
plot_spectrum(f2, p2, cen=iq_data.center, span=args.span, dbm=True,
filename='{}_psd_welch'.format(outfilename_wo_ext))

if args.sgram:
iq_data.method = 'fft'
log.info('Generating spectrogram plot.')
x, y, z = iq_data.get_power_spectrogram(args.nframes, args.lframes)
plot_spectrogram(x, y, z, iq_data.center, cmap=cm.jet, dpi=300, dbm=False,
plot_spectrogram(x, y, z, cen = iq_data.center, cmap=cm.jet, dpi=300, dbm=False,
span=args.span, filename='{}_spectrogram'.format(outfilename_wo_ext))

if args.npy:
Expand Down
2 changes: 1 addition & 1 deletion iqtools/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
xaratustrah@github Jan-2016
"""

__version_info__ = (3, 6, 3)
__version_info__ = (3, 6, 4)
__version__ = '.'.join('%d' % d for d in __version_info__)

0 comments on commit e7f025c

Please sign in to comment.