Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot or Hist returning error #66

Open
brolyxxx opened this issue Apr 22, 2020 · 0 comments
Open

Plot or Hist returning error #66

brolyxxx opened this issue Apr 22, 2020 · 0 comments

Comments

@brolyxxx
Copy link

  • OS: Arch Linux
  • Kernel: 5.6.5-arch3-1
  • dr14_tmeter version: 1.0.16-5 (built from AUR)
  • Python version: 3.8.2-2
  • Matplotlib version: 3.2.1-1

Hi, a per title --hist and --plot_track return errors with matplotlib.

When I run dr14_tmeter --plot_track Craft_Earth_A_Raging_Blaze.flac I get this error:

Start Plot Track: Track Title: Earth A Raging Blaze Traceback (most recent call last): File "/usr/bin/dr14_tmeter", line 26, in <module> dr14tmeter.dr14_tmeter.main() File "/usr/lib/python3.8/site-packages/dr14tmeter/dr14_tmeter.py", line 86, in main if run_analysis_opt( options , path_name ) : File "/usr/lib/python3.8/site-packages/dr14tmeter/dr14_utils.py", line 217, in run_analysis_opt spectr.compute_track( path_name ) File "/usr/lib/python3.8/site-packages/dr14tmeter/audio_analysis.py", line 64, in compute_track self.virt_compute() File "/usr/lib/python3.8/site-packages/dr14tmeter/audio_analysis.py", line 149, in virt_compute plot_str = plot_track_classic( at.Y , at.Fs ) File "/usr/lib/python3.8/site-packages/dr14tmeter/plot_track_classic.py", line 195, in plot_track_classic if Y == None and Fs == None and plot_str == None : ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

When I run dr14_tmeter --hist Craft_Earth_A_Raging_Blaze.flac I get this error:

Start histogram: Track Title: Earth A Raging Blaze qt5ct: using qt5ct plugin Traceback (most recent call last): File "/usr/bin/dr14_tmeter", line 26, in <module> dr14tmeter.dr14_tmeter.main() File "/usr/lib/python3.8/site-packages/dr14tmeter/dr14_tmeter.py", line 86, in main if run_analysis_opt( options , path_name ) : File "/usr/lib/python3.8/site-packages/dr14tmeter/dr14_utils.py", line 237, in run_analysis_opt hist.compute_track( path_name ) File "/usr/lib/python3.8/site-packages/dr14tmeter/audio_analysis.py", line 64, in compute_track self.virt_compute() File "/usr/lib/python3.8/site-packages/dr14tmeter/audio_analysis.py", line 108, in virt_compute compute_hist( at.Y , at.Fs , self.getDuration() , title=title ) File "/usr/lib/python3.8/site-packages/dr14tmeter/dr_histogram.py", line 70, in compute_hist ( hist , bin_edges , patches ) = pyplot.hist( rms , 100 , normed=True ) File "/usr/lib/python3.8/site-packages/matplotlib/pyplot.py", line 2605, in hist return gca().hist( File "/usr/lib/python3.8/site-packages/matplotlib/__init__.py", line 1565, in inner return func(ax, *map(sanitize_sequence, args), **kwargs) File "/usr/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 6808, in hist p.update(kwargs) File "/usr/lib/python3.8/site-packages/matplotlib/artist.py", line 1006, in update ret = [_update_property(self, k, v) for k, v in props.items()] File "/usr/lib/python3.8/site-packages/matplotlib/artist.py", line 1006, in <listcomp> ret = [_update_property(self, k, v) for k, v in props.items()] File "/usr/lib/python3.8/site-packages/matplotlib/artist.py", line 1001, in _update_property raise AttributeError('{!r} object has no property {!r}' AttributeError: 'Rectangle' object has no property 'normed'

Thanks for helping!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant