AppliedAcousticsChalmers / sound_field_analysis-py

Analyze, visualize, and process sound field data recorded by spherical microphone arrays.
https://appliedacousticschalmers.github.io/sound_field_analysis-py/
MIT License
93 stars 16 forks source link

gen.idealWave() fails on Windows Python 3.5 (x64) #4

Closed colbhaidh closed 7 years ago

colbhaidh commented 7 years ago

AE1_IdealPlaneWave.py IdealWave Generator

Warning (from warnings module): File "..\sound_field_analysis\sph.py", line 211 return spbessel(n, krm) - (dspbessel(n, krs) / dsphankel(n, krs)) * sphankel(n, krm) RuntimeWarning: invalid value encountered in true_divide

Pnm array([[ nan +nanj, nan +nanj, nan +nanj, ..., nan +nanj, nan +nanj, nan +nanj], [ -1.00190316e+00 -4.01338101e-01j, -1.00190316e+00 -4.01338101e-01j, 5.12236469e-01 +1.91487108e-01j, ..., 6.52963332e-03 -1.64046583e-02j, -1.08142422e-02 +1.36008399e-02j, 1.40579797e-02 -9.74383232e-03j], [ -6.92814146e-01 +5.44606927e-01j, -6.92814146e-01 +5.44606927e-01j, 3.44521495e-01 -2.84031596e-01j, ..., -8.93413350e-03 -1.13143217e-02j, 5.20235025e-03 +1.31993436e-02j, -1.15078374e-03 -1.39183956e-02j], ..., [ 7.26591711e-04 +4.19497607e-04j, 7.26591711e-04 +4.19497607e-04j, 1.63248223e-01 +8.93309060e-02j, ..., -2.69596410e-02 -1.67026871e-03j, 2.49565221e-02 +9.15335749e-03j, -2.09675451e-02 -1.56539103e-02j], [ 5.64477988e-04 -3.25901761e-04j, 5.64477988e-04 -3.25901761e-04j, 1.23514572e-01 -7.51338336e-02j, ..., -1.15960307e-02 +1.74897009e-02j, 1.58525723e-02 -1.32352485e-02j, -1.86766700e-02 +8.02636522e-03j], [ -8.58983149e-11 -2.66097525e-04j, -8.58983149e-11 -2.66097525e-04j, -1.35151513e-03 -5.90056253e-02j, ..., 3.81651320e-03 +7.66988620e-03j, -1.44347421e-03 -8.30636448e-03j, -9.74610662e-04 +8.24157494e-03j]])

Same thing happens on Anaconda on windows 64

chohner commented 7 years ago

Thanks, I'll have a look at it tomorrow!

chohner commented 7 years ago

This along many other things has been fixed in the new version!

Please note that scipy from anaconda has a weird bug under windows x64, as I reported here: https://github.com/ContinuumIO/anaconda-issues/issues/1415 Nobody should run into this unless running the tests but you can never know.