Mercurial > hg > auditok
changeset 303:ce60e2ec33b0
Update call to plotting code in main
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Wed, 09 Oct 2019 22:18:48 +0100 |
parents | 398eab3c377c |
children | 7d0f2e18add4 |
files | auditok/cmdline.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/auditok/cmdline.py Wed Oct 09 22:10:13 2019 +0100 +++ b/auditok/cmdline.py Wed Oct 09 22:18:48 2019 +0100 @@ -399,7 +399,7 @@ print(str(ae_warn), file=sys.stderr) if args.plot or args.save_image is not None: - from .plotting import plot_detections + from .plotting import plot reader.rewind() record = AudioRegion( @@ -408,10 +408,9 @@ detections = ( (det.start, det.end) for det in tokenizer_worker.detections ) - plot_detections( + plot( record, - record.sr, - detections, + detections=detections, show=True, save_as=args.save_image, )