ptwz / python_wizard

Command line LPC analysis tool to generate bitstreams for the Texas Instruments TMS5220 chip
MIT License
40 stars 12 forks source link

Error running python-wizard.py #11

Closed DanC4 closed 4 years ago

DanC4 commented 4 years ago

When I try to run python-wizard.py, I get this rather cryptic error code:

Traceback (most recent call last):
  File "python_wizard.py", line 71, in <module>
    b=Buffer.fromWave(args.filename)
  File "C:\Users\laure\Documents\python_wizard-master\python_wizard-master\pywizard\Buffer.py", line 32, in fromWave
    assert(max(d2) <= 1)
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

I don't know anything about this error, except that I have already seen this while using the numpy module.

ptwz commented 4 years ago

Sorry about that rather stupid message. It seems you tried to import a stereo file. See #10 Should be fixed now, as far as it now gives a less cryptic message.